From 2ab22b2113c9f2c598ab8aa70140f0e313d6ecf9 Mon Sep 17 00:00:00 2001 From: Tudor Stanciu Date: Sun, 7 May 2023 00:34:22 +0300 Subject: [PATCH] added jsconfig --- jsconfig.json | 6 ++++++ public/locales/en/translations.json | 3 +++ public/locales/ro/translations.json | 3 +++ .../settings/appearance/AppearanceComponent.js | 10 +++++----- src/features/settings/system/ResetCacheComponent.js | 6 ++++-- 5 files changed, 21 insertions(+), 7 deletions(-) create mode 100644 jsconfig.json diff --git a/jsconfig.json b/jsconfig.json new file mode 100644 index 0000000..5875dc5 --- /dev/null +++ b/jsconfig.json @@ -0,0 +1,6 @@ +{ + "compilerOptions": { + "baseUrl": "src" + }, + "include": ["src"] +} diff --git a/public/locales/en/translations.json b/public/locales/en/translations.json index d126e16..7dc1394 100644 --- a/public/locales/en/translations.json +++ b/public/locales/en/translations.json @@ -99,6 +99,9 @@ "Cache": { "Title": "Cache settings", "Reset": "Reset" + }, + "Appearance": { + "Title": "Appearance settings" } }, "About": { diff --git a/public/locales/ro/translations.json b/public/locales/ro/translations.json index a77107e..2169611 100644 --- a/public/locales/ro/translations.json +++ b/public/locales/ro/translations.json @@ -90,6 +90,9 @@ "Cache": { "Title": "Setări cache", "Reset": "Resetați" + }, + "Appearance": { + "Title": "Appearance settings" } }, "About": { diff --git a/src/features/settings/appearance/AppearanceComponent.js b/src/features/settings/appearance/AppearanceComponent.js index 99c9038..274b37e 100644 --- a/src/features/settings/appearance/AppearanceComponent.js +++ b/src/features/settings/appearance/AppearanceComponent.js @@ -2,12 +2,11 @@ import React from "react"; import { useApplicationTheme } from "../../../providers/ThemeProvider"; import { Grid, Paper, FormControlLabel, Switch } from "@material-ui/core"; import LanguageContainer from "./language/LanguageContainer"; +import { PaperTitle } from "components/common"; import { makeStyles } from "@material-ui/core/styles"; +import { useTranslation } from "react-i18next"; const useStyles = makeStyles(theme => ({ - paper: { - paddingTop: theme.spacing(1) - }, language: { paddingLeft: theme.spacing(1) } @@ -15,7 +14,7 @@ const useStyles = makeStyles(theme => ({ const AppearanceComponent = () => { const { isDark, onDarkModeChanged } = useApplicationTheme(); - + const { t } = useTranslation(); const classes = useStyles(); const handleChange = event => { @@ -24,7 +23,8 @@ const AppearanceComponent = () => { }; return ( - + + ({ content: { @@ -15,12 +16,13 @@ const useStyles = makeStyles(theme => ({ const ResetCacheComponent = () => { const classes = useStyles(); const { t } = useTranslation(); + const { sysAdmin } = usePermissions(); return (
-