ui refactor

This commit is contained in:
Stijnus
2025-01-20 09:53:15 +01:00
parent 9230ef3b55
commit 436a8e54bf
41 changed files with 4749 additions and 1964 deletions

View File

@@ -6,6 +6,8 @@ import { themeStore } from './lib/stores/theme';
import { stripIndents } from './utils/stripIndent';
import { createHead } from 'remix-island';
import { useEffect } from 'react';
import { DndProvider } from 'react-dnd';
import { HTML5Backend } from 'react-dnd-html5-backend';
import reactToastifyStyles from 'react-toastify/dist/ReactToastify.css?url';
import globalStyles from './styles/index.scss?url';
@@ -70,11 +72,11 @@ export function Layout({ children }: { children: React.ReactNode }) {
}, [theme]);
return (
<>
<DndProvider backend={HTML5Backend}>
{children}
<ScrollRestoration />
<Scripts />
</>
</DndProvider>
);
}