Fix binary switches for settings drawer
This commit is contained in:
@@ -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),
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user