Skip to content

Commit 5d15d64

Browse files
committed
mui v4 -> v5
1 parent 7f29dfa commit 5d15d64

30 files changed

+909
-319
lines changed

package-lock.json

Lines changed: 836 additions & 267 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,12 @@
6161
},
6262
"dependencies": {
6363
"@electron/remote": "^2.0.1",
64-
"@material-ui/core": "^4.11.2",
65-
"@material-ui/icons": "^4.11.2",
66-
"@reduxjs/toolkit": "^1.6.2",
64+
"@emotion/react": "^11.7.1",
65+
"@emotion/styled": "^11.6.0",
66+
"@mui/icons-material": "^5.2.5",
67+
"@mui/material": "^5.2.8",
68+
"@mui/styles": "^5.2.3",
69+
"@reduxjs/toolkit": "^1.7.1",
6770
"@tinymce/tinymce-react": "^3.9.0",
6871
"autobind-decorator": "^2.4.0",
6972
"axios": "^0.24.0",

src/renderer/components/Loading.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import React from 'react'
2-
import { CircularProgress, Backdrop, makeStyles } from '@material-ui/core'
2+
import { CircularProgress, Backdrop } from '@mui/material'
3+
import { makeStyles } from '@mui/styles'
34

45
const useStyles = makeStyles(theme => ({
56
root: {

src/renderer/components/Preference.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ import { ipcRenderer } from 'electron'
55
import {
66
Dialog, Button, DialogTitle, DialogContent, DialogActions,
77
RadioGroup, Radio, FormControl, InputLabel,
8-
FormControlLabel, FormLabel, Select, MenuItem, makeStyles
9-
} from '@material-ui/core'
8+
FormControlLabel, FormLabel, Select, MenuItem
9+
} from '@mui/material'
10+
import { makeStyles } from '@mui/styles'
1011

1112
import * as EditorMode from '../constants/EditorMode'
1213
import * as AppTheme from '../constants/AppTheme'

src/renderer/components/blog/Blog.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ import React, { useState, useEffect } from 'react'
22
import { ipcRenderer } from 'electron'
33
import { useSelector } from 'react-redux'
44
import {
5-
Fab, Dialog, DialogTitle, DialogContent, Slide, Box,
6-
makeStyles
7-
} from '@material-ui/core'
8-
import { Add } from '@material-ui/icons'
5+
Fab, Dialog, DialogTitle, DialogContent, Slide, Box
6+
} from '@mui/material'
7+
import { makeStyles } from '@mui/styles'
8+
import { Add } from '@mui/icons-material'
99
import Sidebar from './sidebar/Sidebar'
1010
import Content from './content/Content'
1111
import Editor from '../editor/Editor'

src/renderer/components/blog/content/Content.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ import React, { } from 'react'
22
import { useSelector } from 'react-redux'
33
import TumblrContentViewer from './TumblrContentViewer'
44
import TistoryContentViewer from './TistoryContentViewer'
5-
import { Box, Typography, makeStyles } from '@material-ui/core'
5+
import { Box, Typography } from '@mui/material'
6+
import { makeStyles } from '@mui/styles'
67

78
const useStyles = makeStyles(theme => ({
89
container: {

src/renderer/components/blog/content/TumblrContentViewer.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ import { useSelector } from 'react-redux'
33
import { pageview } from '../../../modules/AnalyticsHelper'
44
import TextContentViewer from './type/TextContentViewer'
55
import PhotoContentViewer from './type/PhotoContentViewer'
6-
import { Typography, makeStyles } from '@material-ui/core'
6+
import { Typography } from '@mui/material'
7+
import { makeStyles } from '@mui/styles'
78

89
const useStyles = makeStyles(theme => ({
910
emtpyMessage: {

src/renderer/components/blog/content/type/PhotoContentViewer.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import React, { useState, useEffect, useRef } from 'react'
22
import { useSelector } from 'react-redux'
33
import dayjs from 'dayjs'
4-
import { Chip, IconButton, Box, Divider, Typography, makeStyles, Container, Card, CardMedia, CardContent } from '@material-ui/core'
5-
import { OpenInBrowser, Edit } from '@material-ui/icons'
4+
import { Chip, IconButton, Box, Divider, Typography, Container, Card, CardMedia, CardContent } from '@mui/material'
5+
import { makeStyles } from '@mui/styles'
6+
import { OpenInBrowser, Edit } from '@mui/icons-material'
67
import 'highlight.js/styles/atom-one-dark.css'
78
import { pageview } from '../../../../modules/AnalyticsHelper'
89

src/renderer/components/blog/content/type/TextContentViewer.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import React, { useState, useEffect, useRef } from 'react'
22
import { useSelector } from 'react-redux'
33
import dayjs from 'dayjs'
4-
import { Chip, IconButton, Box, Divider, Typography, makeStyles, Container } from '@material-ui/core'
5-
import { OpenInBrowser, Edit } from '@material-ui/icons'
4+
import { Chip, IconButton, Box, Divider, Typography, Container } from '@mui/material'
5+
import { makeStyles } from '@mui/styles'
6+
import { OpenInBrowser, Edit } from '@mui/icons-material'
67
import highlightjs from 'highlight.js'
78
import 'highlight.js/styles/atom-one-dark.css'
89
import * as ContentHelper from '../../../../modules/ContentHelper'

src/renderer/components/blog/sidebar/Header.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ import React from 'react'
22
import { useSelector } from 'react-redux'
33
import {
44
Toolbar, Avatar, Typography, Button,
5-
makeStyles,
65
Badge, IconButton
7-
} from '@material-ui/core'
8-
import { Menu, MoreHoriz, ArrowDropDown } from '@material-ui/icons'
6+
} from '@mui/material'
7+
import { makeStyles } from '@mui/styles'
8+
import { Menu, MoreHoriz, ArrowDropDown } from '@mui/icons-material'
99
import Providers from '../../../constants/Providers'
1010

1111
const useStyle = makeStyles(theme => ({

0 commit comments

Comments
 (0)