diff --git a/src/renderer/components/switch/form-switcher.tsx b/src/renderer/components/switch/form-switcher.tsx index 4d256ddca8..a8ae022666 100644 --- a/src/renderer/components/switch/form-switcher.tsx +++ b/src/renderer/components/switch/form-switcher.tsx @@ -5,28 +5,11 @@ import React from "react"; import type { FormControlLabelProps } from "@material-ui/core/FormControlLabel"; -import FormControlLabel from "@material-ui/core/FormControlLabel"; -import { makeStyles } from "@material-ui/styles"; -import { Switch } from "./switch"; - -const useStyles = makeStyles({ - root: { - margin: 0, - "& .MuiTypography-root": { - fontSize: 14, - fontWeight: 500, - flex: 1, - color: "var(--textColorAccent)", - }, - }, -}); /** * @deprecated Use instead from "../switch.tsx". */ export function FormSwitch(props: FormControlLabelProps & { children?: React.ReactNode }) { - const classes = useStyles(); - const ClonedElement = React.cloneElement(props.control, { children: props.label, });