Skip to content

Commit

Permalink
remove unused hasTheme variable
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelPesce committed Nov 11, 2024
1 parent d5cfcd0 commit 7e3569d
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions electron/ui/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,9 @@ import '@fontsource/roboto/300.css';
import '@fontsource/roboto/400.css';
import '@fontsource/roboto/500.css';
import '@fontsource/roboto/700.css';
import {useNavigate} from "react-router-dom";
import SplashPage from './views/SplashPage/SplashPage';
import {setProject} from "./services/flowsheet.service";
import MainContent from "./components/MainContent/MainContent";
import WaitForProject from "./components/WaitForProject/WaitForProject";
import {themes} from './theme';
import { ThemeProvider, createTheme } from '@mui/material/styles';

Expand All @@ -26,8 +24,7 @@ function App() {
let theme
if (process.env.NODE_ENV === 'development') theme = themes[localStorage.getItem("theme")] || themes[process.env.REACT_APP_THEME] || themes["watertap"]
else theme = themes[process.env.REACT_APP_THEME] || themes["watertap"]

const hasTheme = true

const WAIT_TIME = 1

// use Material UI theme for styles to be consistent throughout app
Expand Down Expand Up @@ -70,7 +67,7 @@ function App() {
<MainContent theme={theme} connectedToBackend={connectedToBackend}
subProcState={subProcState} changeTheme={changeTheme}/>
{/* <WaitForProject hasTheme={hasTheme}></WaitForProject> */}
<SplashPage theme={theme} hasTheme={hasTheme} connectedToBackend={connectedToBackend}/>
<SplashPage theme={theme} connectedToBackend={connectedToBackend}/>
</div>
</ThemeProvider>
)
Expand Down

0 comments on commit 7e3569d

Please sign in to comment.