fix: deprecated function names
This commit is contained in:
parent
6da95a2295
commit
61b0f8b379
3 changed files with 7 additions and 7 deletions
|
|
@ -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 typographyStyles from 'src/components/typography/styles'
|
||||||
import {
|
import {
|
||||||
|
|
@ -11,10 +11,10 @@ import {
|
||||||
const { h4 } = typographyStyles
|
const { h4 } = typographyStyles
|
||||||
|
|
||||||
const color = color => ({
|
const color = color => ({
|
||||||
boxShadow: `inset 0 -4px 0 0 ${fade(color, 0.8)}`,
|
boxShadow: `inset 0 -4px 0 0 ${alpha(color, 0.8)}`,
|
||||||
'&:hover': {
|
'&:hover': {
|
||||||
boxShadow: 'none',
|
boxShadow: 'none',
|
||||||
backgroundColor: fade(color, 0.8)
|
backgroundColor: alpha(color, 0.8)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import { fade } from '@material-ui/core/styles/colorManipulator'
|
import { alpha } from '@material-ui/core/styles/colorManipulator'
|
||||||
|
|
||||||
import {
|
import {
|
||||||
detailsRowStyles,
|
detailsRowStyles,
|
||||||
|
|
@ -40,7 +40,7 @@ const machineDetailsStyles = {
|
||||||
zIndex: 1,
|
zIndex: 1,
|
||||||
marginRight: 60,
|
marginRight: 60,
|
||||||
marginLeft: 'auto',
|
marginLeft: 'auto',
|
||||||
background: fade(comet, 0.5)
|
background: alpha(comet, 0.5)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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'
|
import typographyStyles from 'src/components/typography/styles'
|
||||||
|
|
||||||
|
|
@ -18,7 +18,7 @@ import {
|
||||||
|
|
||||||
const { p } = typographyStyles
|
const { p } = typographyStyles
|
||||||
|
|
||||||
export default createMuiTheme({
|
export default createTheme({
|
||||||
typography: {
|
typography: {
|
||||||
fontFamily: inputFontFamily,
|
fontFamily: inputFontFamily,
|
||||||
body1: { ...p }
|
body1: { ...p }
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue