fix: deprecated function names

This commit is contained in:
Rafael 2024-11-30 10:56:05 +00:00
parent 6da95a2295
commit 61b0f8b379
3 changed files with 7 additions and 7 deletions

View file

@ -1,4 +1,4 @@
import { fade } from '@material-ui/core/styles/colorManipulator'
import { alpha } from '@material-ui/core/styles/colorManipulator'
import typographyStyles from 'src/components/typography/styles'
import {
@ -11,10 +11,10 @@ import {
const { h4 } = typographyStyles
const color = color => ({
boxShadow: `inset 0 -4px 0 0 ${fade(color, 0.8)}`,
boxShadow: `inset 0 -4px 0 0 ${alpha(color, 0.8)}`,
'&:hover': {
boxShadow: 'none',
backgroundColor: fade(color, 0.8)
backgroundColor: alpha(color, 0.8)
}
})

View file

@ -1,4 +1,4 @@
import { fade } from '@material-ui/core/styles/colorManipulator'
import { alpha } from '@material-ui/core/styles/colorManipulator'
import {
detailsRowStyles,
@ -40,7 +40,7 @@ const machineDetailsStyles = {
zIndex: 1,
marginRight: 60,
marginLeft: 'auto',
background: fade(comet, 0.5)
background: alpha(comet, 0.5)
}
}

View file

@ -1,4 +1,4 @@
import { createMuiTheme } from '@material-ui/core/styles'
import { createTheme } from '@material-ui/core/styles'
import typographyStyles from 'src/components/typography/styles'
@ -18,7 +18,7 @@ import {
const { p } = typographyStyles
export default createMuiTheme({
export default createTheme({
typography: {
fontFamily: inputFontFamily,
body1: { ...p }