wip: new onboarding

This commit is contained in:
2023-10-14 15:19:49 +07:00
parent 0777c483e5
commit 620e763380
60 changed files with 153 additions and 157 deletions

View File

@@ -1,4 +1,4 @@
import { Outlet } from 'react-router-dom';
import { Outlet, ScrollRestoration } from 'react-router-dom';
import { WindowTitlebar } from 'tauri-controls';
import { useStorage } from '@libs/storage/provider';
@@ -7,10 +7,11 @@ export function AuthLayout() {
const { db } = useStorage();
return (
<div className="relative h-screen w-screen bg-neutral-50 dark:bg-neutral-950">
<div className="h-screen w-screen bg-neutral-50 dark:bg-neutral-950">
{db.platform !== 'macos' ? <WindowTitlebar /> : null}
<div className="bg-neutral-50 dark:bg-neutral-950">
<div className="h-full w-full">
<Outlet />
<ScrollRestoration />
</div>
</div>
);