Fix binary switches for settings drawer

This commit is contained in:
Thomas Nordquist
2019-06-05 13:28:07 +02:00
parent b9dcc4a9a8
commit 15c4dc2df3

View File

@@ -34,7 +34,6 @@ function BooleanSwitch(props: {title: string, value: boolean, tooltip: string, a
checked={value} checked={value}
onChange={action} onChange={action}
color="primary" color="primary"
classes={{ switchBase: classes.switchBase }}
/> />
</Tooltip> </Tooltip>
</div> </div>
@@ -42,12 +41,9 @@ function BooleanSwitch(props: {title: string, value: boolean, tooltip: string, a
} }
const styles = (theme: Theme) => ({ const styles = (theme: Theme) => ({
switchBase: {
height: theme.spacing(4),
},
label: { label: {
flex: '1', flex: '1',
paddingTop: '8px', paddingTop: theme.spacing(1.5),
}, },
}) })