Skip to content

Commit

Permalink
fix localstorage error, redux type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkMelior committed Apr 4, 2024
1 parent 86af0ab commit c1db1ea
Show file tree
Hide file tree
Showing 26 changed files with 647 additions and 123 deletions.
29 changes: 13 additions & 16 deletions app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { ClientProviders } from '@/app/providers/ClientProviders';
import { ServerProviders } from '@/app/providers/ServerProviders';
import { Providers } from '@/app/providers/Providers';
import '@/app/styles/index.scss';
import { Notification } from '@/entities/Notification';
import { ScrollUp } from '@/features/ScrollUp';
Expand Down Expand Up @@ -28,20 +27,18 @@ export default function LocaleLayout({ children }: LocaleLayoutProps) {
<html lang='ru'>
<body className={inter.className}>
<Suspense fallback={<PageLoader />}>
<ServerProviders>
<ClientProviders>
<Navbar />
{/* <Light /> */}
{children}
<Notification
message='Добавьте наш сайт в закладки, чтобы не потерять'
startContent={<BookmarkIcon opacity={0.5} />}
/>
<SpaceCanvas />
<ScrollUp />
<Footer />
</ClientProviders>
</ServerProviders>
<Providers>
<Navbar />
{/* <Light /> */}
{children}
<Notification
message='Добавьте наш сайт в закладки, чтобы не потерять'
startContent={<BookmarkIcon opacity={0.5} />}
/>
<SpaceCanvas />
<ScrollUp />
<Footer />
</Providers>
</Suspense>
</body>
</html>
Expand Down
3 changes: 3 additions & 0 deletions next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ const nextConfig = {
IS_DEV: JSON.stringify(isDev),
API: process.env.API,
},
compiler: {
styledComponents: true,
},
webpack: (config, options) => {
config.module.rules.push(...buildLoaders(isDev));
config.plugins.push(...buildPlugins(config, isDev));
Expand Down
Loading

0 comments on commit c1db1ea

Please sign in to comment.