Remove theme and language selectors

This commit is contained in:
Nicola Benaglia 2025-05-29 09:21:33 +02:00
parent 376c398932
commit 72b0b913bb

View File

@ -29,9 +29,7 @@ import HelpIcon from '@mui/icons-material/Help';
import { CustomizedSnackbars } from './Snackbar/Snackbar'; import { CustomizedSnackbars } from './Snackbar/Snackbar';
import { cleanUrl, gateways } from '../background/background.ts'; import { cleanUrl, gateways } from '../background/background.ts';
import Tooltip, { TooltipProps, tooltipClasses } from '@mui/material/Tooltip'; import Tooltip, { TooltipProps, tooltipClasses } from '@mui/material/Tooltip';
import ThemeSelector from './Theme/ThemeSelector';
import { useTranslation } from 'react-i18next'; import { useTranslation } from 'react-i18next';
import LanguageSelector from './Language/LanguageSelector';
import { QORTAL_APP_CONTEXT } from '../App'; import { QORTAL_APP_CONTEXT } from '../App';
export const manifestData = { export const manifestData = {
@ -482,7 +480,8 @@ export const NotAuthenticated = ({
return ( return (
<> <>
<Spacer height="35px" /> <Spacer height="35px" />
<div
<Box
className="image-container" className="image-container"
style={{ style={{
width: '136px', width: '136px',
@ -490,7 +489,7 @@ export const NotAuthenticated = ({
}} }}
> >
<img src={Logo1Dark} className="base-image" /> <img src={Logo1Dark} className="base-image" />
</div> </Box>
<Spacer height="30px" /> <Spacer height="30px" />
@ -513,6 +512,7 @@ export const NotAuthenticated = ({
</TextP> </TextP>
<Spacer height="30px" /> <Spacer height="30px" />
<Box <Box
sx={{ sx={{
display: 'flex', display: 'flex',
@ -547,6 +547,7 @@ export const NotAuthenticated = ({
</Box> </Box>
<Spacer height="6px" /> <Spacer height="6px" />
<Box <Box
sx={{ sx={{
display: 'flex', display: 'flex',
@ -624,6 +625,7 @@ export const NotAuthenticated = ({
<> <>
<Spacer height="15px" /> <Spacer height="15px" />
<Box <Box
sx={{ sx={{
display: 'flex', display: 'flex',
@ -648,6 +650,7 @@ export const NotAuthenticated = ({
> >
{t('auth:advanced_users', { postProcess: 'capitalizeFirstChar' })} {t('auth:advanced_users', { postProcess: 'capitalizeFirstChar' })}
</Typography> </Typography>
<Box <Box
sx={{ sx={{
alignItems: 'center', alignItems: 'center',
@ -725,6 +728,7 @@ export const NotAuthenticated = ({
postProcess: 'capitalizeFirstChar', postProcess: 'capitalizeFirstChar',
})} })}
</Button> </Button>
<Typography <Typography
sx={{ sx={{
fontSize: '12px', fontSize: '12px',
@ -736,6 +740,7 @@ export const NotAuthenticated = ({
</Typography> </Typography>
</> </>
)} )}
<Button <Button
size="small" size="small"
onClick={() => { onClick={() => {
@ -747,6 +752,7 @@ export const NotAuthenticated = ({
{t('auth:node.choose', { postProcess: 'capitalizeFirstChar' })} {t('auth:node.choose', { postProcess: 'capitalizeFirstChar' })}
</Button> </Button>
</> </>
<Typography <Typography
sx={{ sx={{
color: theme.palette.text.primary, color: theme.palette.text.primary,
@ -765,6 +771,7 @@ export const NotAuthenticated = ({
info={infoSnack} info={infoSnack}
setInfo={setInfoSnack} setInfo={setInfoSnack}
/> />
{show && ( {show && (
<Dialog <Dialog
open={show} open={show}
@ -784,6 +791,7 @@ export const NotAuthenticated = ({
{t('auth:node.custom_many', { postProcess: 'capitalizeFirstChar' })} {t('auth:node.custom_many', { postProcess: 'capitalizeFirstChar' })}
: :
</DialogTitle> </DialogTitle>
<DialogContent> <DialogContent>
<Box <Box
sx={{ sx={{
@ -817,6 +825,7 @@ export const NotAuthenticated = ({
> >
http://127.0.0.1:12391 http://127.0.0.1:12391
</Typography> </Typography>
<Box <Box
sx={{ sx={{
display: 'flex', display: 'flex',
@ -1068,6 +1077,7 @@ export const NotAuthenticated = ({
> >
{t('auth:apikey.enter', { postProcess: 'capitalizeFirstChar' })} {t('auth:apikey.enter', { postProcess: 'capitalizeFirstChar' })}
</DialogTitle> </DialogTitle>
<DialogContent> <DialogContent>
<Box <Box
sx={{ sx={{
@ -1177,10 +1187,6 @@ export const NotAuthenticated = ({
}} }}
/> />
</ButtonBase> </ButtonBase>
<LanguageSelector />
<ThemeSelector />
</> </>
); );
}; };