Remove duplicated app elements
This commit is contained in:
parent
575afa2e98
commit
d7c72080e9
1 changed files with 5 additions and 13 deletions
|
@ -3,8 +3,6 @@ import { History } from '@remix-run/router';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
|
||||||
import StableApp from './apps/stable/App';
|
import StableApp from './apps/stable/App';
|
||||||
import AppHeader from './components/AppHeader';
|
|
||||||
import Backdrop from './components/Backdrop';
|
|
||||||
import { HistoryRouter } from './components/HistoryRouter';
|
import { HistoryRouter } from './components/HistoryRouter';
|
||||||
import { ApiProvider } from './hooks/useApi';
|
import { ApiProvider } from './hooks/useApi';
|
||||||
|
|
||||||
|
@ -16,17 +14,11 @@ const RootApp = ({ history }: { history: History }) => {
|
||||||
return (
|
return (
|
||||||
<ApiProvider>
|
<ApiProvider>
|
||||||
<HistoryRouter history={history}>
|
<HistoryRouter history={history}>
|
||||||
<Backdrop />
|
|
||||||
<AppHeader />
|
|
||||||
|
|
||||||
<div className='mainAnimatedPages skinBody' />
|
|
||||||
<div className='skinBody'>
|
|
||||||
{
|
{
|
||||||
layoutMode === 'experimental' ?
|
layoutMode === 'experimental' ?
|
||||||
<ExperimentalApp /> :
|
<ExperimentalApp /> :
|
||||||
<StableApp />
|
<StableApp />
|
||||||
}
|
}
|
||||||
</div>
|
|
||||||
</HistoryRouter>
|
</HistoryRouter>
|
||||||
</ApiProvider>
|
</ApiProvider>
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue