mirror of
https://github.com/UniversityOfHelsinkiCS/oodikone.git
synced 2026-10-12 19:03:39 +03:00
[TSX] Toggle substitution switch
This commit is contained in:
+8
-2
@@ -1,10 +1,16 @@
|
||||
import FormControlLabel from '@mui/material/FormControlLabel'
|
||||
import Switch from '@mui/material/Switch'
|
||||
|
||||
export const IncludeSubstitutionsToggle = ({ includeSubstitutions, toggleIncludeSubstitutions }) => (
|
||||
export const IncludeSubstitutionsToggle = ({
|
||||
includeSubstitutions,
|
||||
toggleIncludeSubstitutions,
|
||||
}: {
|
||||
includeSubstitutions: boolean
|
||||
toggleIncludeSubstitutions: () => void
|
||||
}) => (
|
||||
<FormControlLabel
|
||||
control={<Switch checked={includeSubstitutions} onChange={toggleIncludeSubstitutions} />}
|
||||
label="Include substitutions"
|
||||
sx={{ margin: 0 }}
|
||||
sx={{ m: 0 }}
|
||||
/>
|
||||
)
|
||||
Reference in New Issue
Block a user