@@ -49,25 +49,23 @@ const StyledButton = styled(Button)(() => ({
4949 padding : '0px'
5050} ) ) ;
5151
52- const StyledDiv = styled ( 'div' ) (
53- ( { theme, enabled, type } : { theme : Theme ; enabled : boolean ; type : VIEW_VISIBILITY } ) => ( {
54- paddingLeft : '0.3rem' ,
55- height : '1.5rem' ,
56- paddingRight : enabled ? '0' : '0.3rem' ,
57- borderRadius : '0.25rem' ,
58- border : `1px solid ${ NOT_FOUND } ` ,
59- background :
60- theme ?. palette . mode === 'light' ? ALICE_BLUE : theme ?. palette . background . constant ?. table ,
61- textTransform : 'uppercase' ,
62- color : theme ?. palette . text . default ,
63- display : 'flex' ,
64- justifyContent : 'center' ,
65- alignItems : 'center' ,
66- width : type !== 'published' ? '3.8rem' : 'auto' ,
67- fontSize : '0.75rem' ,
68- fontFamily : theme ?. typography . fontFamily
69- } )
70- ) ;
52+ const StyledDiv = styled ( 'div' ) ( ( { theme, enabled } : { theme : Theme ; enabled : boolean } ) => ( {
53+ paddingLeft : '0.3rem' ,
54+ height : '1.5rem' ,
55+ width : 'auto' ,
56+ paddingRight : enabled ? '0' : '0.3rem' ,
57+ borderRadius : '0.25rem' ,
58+ border : `1px solid ${ NOT_FOUND } ` ,
59+ background :
60+ theme ?. palette . mode === 'light' ? ALICE_BLUE : theme ?. palette . background . constant ?. table ,
61+ textTransform : 'uppercase' ,
62+ color : theme ?. palette . text . default ,
63+ display : 'flex' ,
64+ justifyContent : 'center' ,
65+ alignItems : 'center' ,
66+ fontSize : '0.75rem' ,
67+ fontFamily : theme ?. typography . fontFamily
68+ } ) ) ;
7169
7270const StyledMenuItem = styled ( MenuItem ) ( ( { theme } ) => ( {
7371 textTransform : 'capitalize' ,
0 commit comments