use switch for Pro-mode

This commit is contained in:
nikk gitanes
2023-03-28 21:59:28 +03:00
parent ea78eb0e52
commit f817d98b2c
2 changed files with 8 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
import axios from 'axios' import axios from 'axios'
import Button from '@material-ui/core/Button' import Button from '@material-ui/core/Button'
import Checkbox from '@material-ui/core/Checkbox' import Switch from '@material-ui/core/Switch'
import { FormControlLabel, useMediaQuery, useTheme } from '@material-ui/core' import { FormControlLabel, useMediaQuery, useTheme } from '@material-ui/core'
import { settingsHost } from 'utils/Hosts' import { settingsHost } from 'utils/Hosts'
import { useEffect, useState } from 'react' import { useEffect, useState } from 'react'
@@ -94,7 +94,7 @@ export default function SettingsDialog({ handleClose }) {
<div>{t('SettingsDialog.Settings')}</div> <div>{t('SettingsDialog.Settings')}</div>
<FormControlLabel <FormControlLabel
control={ control={
<Checkbox <Switch
checked={isProMode} checked={isProMode}
onChange={({ target: { checked } }) => { onChange={({ target: { checked } }) => {
setIsProMode(checked) setIsProMode(checked)
@@ -105,6 +105,7 @@ export default function SettingsDialog({ handleClose }) {
/> />
} }
label={t('SettingsDialog.ProMode')} label={t('SettingsDialog.ProMode')}
labelPlacement='start'
/> />
</SettingsHeader> </SettingsHeader>

View File

@@ -53,6 +53,11 @@ export const useMaterialUITheme = () => {
secondary: { main: mainColors[theme].secondary }, secondary: { main: mainColors[theme].secondary },
}, },
overrides: { overrides: {
MuiTypography: {
h6: {
fontSize: '1.2rem',
},
},
MuiInputBase: { MuiInputBase: {
input: { input: {
color: mainColors[theme].labels, color: mainColors[theme].labels,