From e67aafb900f474da2381ea418c3e8eb09bc4683b Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sun, 19 Jun 2022 09:35:59 -0700 Subject: Fix issues --- modern/src/App.js | 21 +++++++++++---------- modern/src/other/ChangeServerPage.js | 4 +++- 2 files changed, 14 insertions(+), 11 deletions(-) (limited to 'modern/src') diff --git a/modern/src/App.js b/modern/src/App.js index aac6979e..74a9acc0 100644 --- a/modern/src/App.js +++ b/modern/src/App.js @@ -25,20 +25,21 @@ const App = () => { const initialized = useSelector((state) => !!state.session.user); - if (!initialized) { - return (); - } return ( <> -
- -
- {!desktop && ( -
- -
+ {!initialized ? () : ( + <> +
+ +
+ {!desktop && ( +
+ +
+ )} + )} ); diff --git a/modern/src/other/ChangeServerPage.js b/modern/src/other/ChangeServerPage.js index 1862ecbd..edce3cd7 100644 --- a/modern/src/other/ChangeServerPage.js +++ b/modern/src/other/ChangeServerPage.js @@ -1,7 +1,9 @@ import React, { useState } from 'react'; import ElectricalServicesIcon from '@mui/icons-material/ElectricalServices'; import { makeStyles } from '@mui/styles'; -import { Autocomplete, Button, Container, TextField } from '@mui/material'; +import { + Autocomplete, Button, Container, TextField, +} from '@mui/material'; import { useTranslation } from '../common/components/LocalizationProvider'; const currentServer = `${window.location.protocol}//${window.location.host}`; -- cgit v1.2.3