material ui v4 migration style fixes

This commit is contained in:
Mikhail Mikheev 2019-05-27 19:11:24 +04:00
parent ed2b6139c7
commit 974bc0d804
4 changed files with 13 additions and 2 deletions

View File

@ -64,7 +64,7 @@ const styles = theme => ({
},
iconVariant: {
opacity: 0.9,
marginRight: theme.spacing.unit,
marginRight: theme.spacing(1),
},
message: {
display: 'flex',

View File

@ -9,6 +9,8 @@ export const selectedTokenStyles = () => ({
},
tokenData: {
padding: 0,
margin: 0,
lineHeight: '14px',
},
tokenImage: {
marginRight: sm,

View File

@ -13,7 +13,7 @@ export const styles = (theme: Object) => ({
margin: `${sm} 0`,
},
actionIcon: {
marginRight: theme.spacing.unit,
marginRight: theme.spacing(1),
},
iconSmall: {
fontSize: 16,

View File

@ -12,6 +12,7 @@ import {
bolderFont,
boldFont,
buttonLargeFontSize,
xs,
} from './variables'
export type WithStyles = {
@ -135,6 +136,7 @@ export default createMuiTheme({
padding: 0,
letterSpacing: '0.5px',
color: primary,
height: 'auto',
textOverflow: 'ellipsis',
display: 'flex',
'&::-webkit-input-placeholder': {
@ -217,6 +219,8 @@ export default createMuiTheme({
color: primary,
letterSpacing: '-0.5px',
fontWeight: 'normal',
paddingTop: xs,
paddingBottom: xs,
},
},
MuiBackdrop: {
@ -230,6 +234,11 @@ export default createMuiTheme({
fontFamily: 'Roboto Mono, monospace',
},
},
MuiListItemIcon: {
root: {
minWidth: 'auto',
},
},
MuiListItemText: {
primary: {
fontFamily: 'Roboto Mono, monospace',