From cbca4628932522d26379415fff87cd2b8251a9a2 Mon Sep 17 00:00:00 2001 From: Tudor Stanciu Date: Mon, 25 Mar 2024 02:41:20 +0200 Subject: [PATCH] Update AppearanceComponent.js with MUI Box component --- .../settings/appearance/AppearanceComponent.js | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/frontend/src/features/settings/appearance/AppearanceComponent.js b/frontend/src/features/settings/appearance/AppearanceComponent.js index 565f9f6..0dbe4a1 100644 --- a/frontend/src/features/settings/appearance/AppearanceComponent.js +++ b/frontend/src/features/settings/appearance/AppearanceComponent.js @@ -1,21 +1,19 @@ import React from "react"; import { useApplicationTheme } from "../../../providers/ThemeProvider"; -import { Grid, Paper, FormControlLabel, Switch } from "@mui/material"; +import { Grid, Paper, FormControlLabel, Switch, Box } from "@mui/material"; import LanguageContainer from "./language/LanguageContainer"; import { PaperTitle } from "components/common"; -import { makeStyles } from "@mui/material/styles"; import { useTranslation } from "react-i18next"; -const useStyles = makeStyles(theme => ({ +const styles = { language: { - paddingLeft: theme.spacing(1) + paddingLeft: 1 } -})); +}; const AppearanceComponent = () => { const { isDark, onDarkModeChanged } = useApplicationTheme(); const { t } = useTranslation(); - const classes = useStyles(); const handleChange = event => { const { checked } = event.target; @@ -38,9 +36,9 @@ const AppearanceComponent = () => { + - + } label="Language:" labelPlacement="start"