From 8d9c4743964ef1a8af76a945437eabe58ba29794 Mon Sep 17 00:00:00 2001 From: Alex Andreev Date: Thu, 18 Aug 2022 16:55:00 +0300 Subject: [PATCH] Clean up material UI (except types) from FormSwitch Signed-off-by: Alex Andreev --- .../components/switch/form-switcher.tsx | 17 ----------------- 1 file changed, 17 deletions(-) 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, });