Updated API in material-ui.
parent
f79a452341
commit
da3233faf3
|
|
@ -49,7 +49,7 @@ const styles = (theme) =>
|
||||||
},
|
},
|
||||||
fab :
|
fab :
|
||||||
{
|
{
|
||||||
margin : theme.spacing.unit
|
margin : theme.spacing(1)
|
||||||
},
|
},
|
||||||
viewContainer :
|
viewContainer :
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -48,7 +48,7 @@ const styles = (theme) =>
|
||||||
},
|
},
|
||||||
fab :
|
fab :
|
||||||
{
|
{
|
||||||
margin : theme.spacing.unit
|
margin : theme.spacing(1)
|
||||||
},
|
},
|
||||||
viewContainer :
|
viewContainer :
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ const styles = (theme) =>
|
||||||
dialogPaper :
|
dialogPaper :
|
||||||
{
|
{
|
||||||
width : '20vw',
|
width : '20vw',
|
||||||
padding : theme.spacing.unit * 2,
|
padding : theme.spacing(2),
|
||||||
[theme.breakpoints.down('lg')] :
|
[theme.breakpoints.down('lg')] :
|
||||||
{
|
{
|
||||||
width : '30vw'
|
width : '30vw'
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ const styles = (theme) =>
|
||||||
({
|
({
|
||||||
root :
|
root :
|
||||||
{
|
{
|
||||||
padding : theme.spacing.unit,
|
padding : theme.spacing(1),
|
||||||
display : 'flex',
|
display : 'flex',
|
||||||
alignItems : 'center',
|
alignItems : 'center',
|
||||||
borderRadius : 0
|
borderRadius : 0
|
||||||
|
|
|
||||||
|
|
@ -21,8 +21,8 @@ const styles = (theme) =>
|
||||||
root :
|
root :
|
||||||
{
|
{
|
||||||
display : 'flex',
|
display : 'flex',
|
||||||
marginBottom : theme.spacing.unit,
|
marginBottom : theme.spacing(1),
|
||||||
padding : theme.spacing.unit,
|
padding : theme.spacing(1),
|
||||||
flexShrink : 0
|
flexShrink : 0
|
||||||
},
|
},
|
||||||
selfMessage :
|
selfMessage :
|
||||||
|
|
@ -42,7 +42,7 @@ const styles = (theme) =>
|
||||||
},
|
},
|
||||||
content :
|
content :
|
||||||
{
|
{
|
||||||
marginLeft : theme.spacing.unit
|
marginLeft : theme.spacing(1)
|
||||||
},
|
},
|
||||||
avatar :
|
avatar :
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ const styles = (theme) =>
|
||||||
flexDirection : 'column',
|
flexDirection : 'column',
|
||||||
alignItems : 'center',
|
alignItems : 'center',
|
||||||
overflowY : 'auto',
|
overflowY : 'auto',
|
||||||
padding : theme.spacing.unit
|
padding : theme.spacing(1)
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -14,11 +14,11 @@ const styles = (theme) =>
|
||||||
display : 'flex',
|
display : 'flex',
|
||||||
alignItems : 'center',
|
alignItems : 'center',
|
||||||
width : '100%',
|
width : '100%',
|
||||||
padding : theme.spacing.unit,
|
padding : theme.spacing(1),
|
||||||
boxShadow : '0px 1px 5px 0px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 3px 1px -2px rgba(0, 0, 0, 0.12)',
|
boxShadow : '0px 1px 5px 0px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 3px 1px -2px rgba(0, 0, 0, 0.12)',
|
||||||
'&:not(:last-child)' :
|
'&:not(:last-child)' :
|
||||||
{
|
{
|
||||||
marginBottom : theme.spacing.unit
|
marginBottom : theme.spacing(1)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
avatar :
|
avatar :
|
||||||
|
|
@ -29,7 +29,7 @@ const styles = (theme) =>
|
||||||
text :
|
text :
|
||||||
{
|
{
|
||||||
margin : 0,
|
margin : 0,
|
||||||
padding : theme.spacing.unit
|
padding : theme.spacing(1)
|
||||||
},
|
},
|
||||||
fileContent :
|
fileContent :
|
||||||
{
|
{
|
||||||
|
|
@ -40,7 +40,7 @@ const styles = (theme) =>
|
||||||
{
|
{
|
||||||
display : 'flex',
|
display : 'flex',
|
||||||
alignItems : 'center',
|
alignItems : 'center',
|
||||||
padding : theme.spacing.unit
|
padding : theme.spacing(1)
|
||||||
},
|
},
|
||||||
button :
|
button :
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ const styles = (theme) =>
|
||||||
flexDirection : 'column',
|
flexDirection : 'column',
|
||||||
alignItems : 'center',
|
alignItems : 'center',
|
||||||
overflowY : 'auto',
|
overflowY : 'auto',
|
||||||
padding : theme.spacing.unit
|
padding : theme.spacing(1)
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ const styles = (theme) =>
|
||||||
},
|
},
|
||||||
button :
|
button :
|
||||||
{
|
{
|
||||||
margin : theme.spacing.unit
|
margin : theme.spacing(1)
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@ const styles = (theme) =>
|
||||||
list :
|
list :
|
||||||
{
|
{
|
||||||
listStyleType : 'none',
|
listStyleType : 'none',
|
||||||
padding : theme.spacing.unit,
|
padding : theme.spacing(1),
|
||||||
boxShadow : '0 2px 5px 2px rgba(0, 0, 0, 0.2)',
|
boxShadow : '0 2px 5px 2px rgba(0, 0, 0, 0.2)',
|
||||||
backgroundColor : 'rgba(255, 255, 255, 1)'
|
backgroundColor : 'rgba(255, 255, 255, 1)'
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -60,7 +60,7 @@ const styles = (theme) =>
|
||||||
left : '50%',
|
left : '50%',
|
||||||
transform : 'translateX(-50%) translateY(-50%)',
|
transform : 'translateX(-50%) translateY(-50%)',
|
||||||
width : '30vw',
|
width : '30vw',
|
||||||
padding : theme.spacing.unit * 2,
|
padding : theme.spacing(2),
|
||||||
flexDirection : 'column',
|
flexDirection : 'column',
|
||||||
justifyContent : 'center',
|
justifyContent : 'center',
|
||||||
alignItems : 'center'
|
alignItems : 'center'
|
||||||
|
|
@ -129,7 +129,7 @@ const styles = (theme) =>
|
||||||
},
|
},
|
||||||
actionButton :
|
actionButton :
|
||||||
{
|
{
|
||||||
margin : theme.spacing.unit,
|
margin : theme.spacing(1),
|
||||||
padding : 0
|
padding : 0
|
||||||
},
|
},
|
||||||
meContainer :
|
meContainer :
|
||||||
|
|
|
||||||
|
|
@ -43,7 +43,7 @@ const styles = (theme) =>
|
||||||
},
|
},
|
||||||
setting :
|
setting :
|
||||||
{
|
{
|
||||||
padding : theme.spacing.unit * 2
|
padding : theme.spacing(2)
|
||||||
},
|
},
|
||||||
formControl :
|
formControl :
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue