2023-05-23 12:30:38 +03:00
|
|
|
import Button from './admin-x-ds/global/Button';
|
2023-05-17 20:09:09 +03:00
|
|
|
import Heading from './admin-x-ds/global/Heading';
|
2023-05-24 17:31:02 +03:00
|
|
|
import NiceModal from '@ebay/nice-modal-react';
|
2023-05-16 09:23:36 +03:00
|
|
|
import Settings from './components/Settings';
|
|
|
|
import Sidebar from './components/Sidebar';
|
2023-05-17 23:33:14 +03:00
|
|
|
import {SettingsProvider} from './components/SettingsProvider';
|
2023-05-16 09:23:36 +03:00
|
|
|
|
|
|
|
function App() {
|
|
|
|
return (
|
2023-05-16 18:38:40 +03:00
|
|
|
<div className="admin-x-settings">
|
2023-05-24 17:31:02 +03:00
|
|
|
<NiceModal.Provider>
|
|
|
|
<div className='fixed left-6 top-4'>
|
|
|
|
<Button label='← Done' link={true} onClick={() => window.history.back()} />
|
|
|
|
</div>
|
2023-05-16 09:23:36 +03:00
|
|
|
|
2023-05-24 17:31:02 +03:00
|
|
|
{/* Main container */}
|
|
|
|
<div className="mx-auto flex max-w-[1080px] flex-col px-[5vmin] py-[12vmin] md:flex-row md:items-start md:gap-x-10 md:py-[8vmin]">
|
2023-05-16 09:23:36 +03:00
|
|
|
|
2023-05-24 17:31:02 +03:00
|
|
|
{/* Sidebar */}
|
|
|
|
<div className="relative min-w-[240px] grow-0 md:fixed md:top-[8vmin] md:basis-[240px]">
|
|
|
|
<div className='h-[84px]'>
|
|
|
|
<Heading>Settings</Heading>
|
|
|
|
</div>
|
|
|
|
<div className="relative mt-[-32px] w-[240px] overflow-x-hidden after:absolute after:inset-x-0 after:top-0 after:block after:h-[40px] after:bg-gradient-to-b after:from-white after:to-transparent after:content-['']">
|
|
|
|
<Sidebar />
|
|
|
|
</div>
|
2023-05-23 12:30:38 +03:00
|
|
|
</div>
|
2023-05-24 17:31:02 +03:00
|
|
|
<div className="flex-auto pt-[3vmin] md:ml-[280px] md:pt-[84px]">
|
|
|
|
<SettingsProvider>
|
|
|
|
<Settings />
|
|
|
|
</SettingsProvider>
|
2023-05-23 12:48:02 +03:00
|
|
|
</div>
|
2023-05-16 09:23:36 +03:00
|
|
|
</div>
|
2023-05-24 17:31:02 +03:00
|
|
|
</NiceModal.Provider>
|
2023-05-16 09:23:36 +03:00
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
export default App;
|