Skip to content

Commit

Permalink
Merge pull request #9 from IanMoone845/removeMuiStyles
Browse files Browse the repository at this point in the history
Remove deprecated @mui/styles package
  • Loading branch information
mgsecure authored Apr 17, 2024
2 parents 8e91ba9 + 585f380 commit 8386720
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
"@emotion/styled": "^11.11.0",
"@mui/icons-material": "^5.15.4",
"@mui/material": "^5.15.4",
"@mui/styles": "^5.15.14",
"@mui/x-data-grid": "^7.0.0",
"@mui/x-date-pickers": "^6.19.4",
"dayjs": "^1.11.9",
Expand Down
10 changes: 1 addition & 9 deletions src/speedpicks/Entry.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,6 @@ import DataContext from '../context/DataContext'
import {useTheme} from '@mui/material/styles'
import useWindowSize from '../util/useWindowSize.jsx'
import ErrorIcon from '@mui/icons-material/Error'
import {makeStyles} from '@mui/styles'

const useStyles = makeStyles({
alert : {
color: '#E15C07FF'
}
})

const Entry = ({entry, expanded, onExpand, bestTimes, entriesUpdate}) => {

Expand Down Expand Up @@ -110,9 +103,8 @@ const Entry = ({entry, expanded, onExpand, bestTimes, entriesUpdate}) => {
...divFlexStyle
}

const classes = useStyles()
const expandIcon = entry.status === 'rejected'
? <ErrorIcon className={classes.alert}/>
? <ErrorIcon style={{color: '#E15C07FF'}}/>
: <ExpandMoreIcon/>

const timeString = entry.status === 'rejected'
Expand Down

0 comments on commit 8386720

Please sign in to comment.