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 StableApp from './apps/stable/App';
|
||||
import AppHeader from './components/AppHeader';
|
||||
import Backdrop from './components/Backdrop';
|
||||
import { HistoryRouter } from './components/HistoryRouter';
|
||||
import { ApiProvider } from './hooks/useApi';
|
||||
|
||||
|
@ -16,17 +14,11 @@ const RootApp = ({ history }: { history: History }) => {
|
|||
return (
|
||||
<ApiProvider>
|
||||
<HistoryRouter history={history}>
|
||||
<Backdrop />
|
||||
<AppHeader />
|
||||
|
||||
<div className='mainAnimatedPages skinBody' />
|
||||
<div className='skinBody'>
|
||||
{
|
||||
layoutMode === 'experimental' ?
|
||||
<ExperimentalApp /> :
|
||||
<StableApp />
|
||||
}
|
||||
</div>
|
||||
{
|
||||
layoutMode === 'experimental' ?
|
||||
<ExperimentalApp /> :
|
||||
<StableApp />
|
||||
}
|
||||
</HistoryRouter>
|
||||
</ApiProvider>
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue