Skip to content

Commit

Permalink
fix: feature cards appearing outside of main pages
Browse files Browse the repository at this point in the history
  • Loading branch information
oktapodia committed Jun 26, 2024
1 parent 12ac86c commit 32e43cc
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import App from '../../ui/app/App';
import App from '../../../ui/app/App';
import { WidgetContainer, Widgets } from '@/components/Widgets';
import { Widget } from '@/components/Widgets/Widget';
import { getCookies } from '@/app/lib/getCookies';
Expand Down
File renamed without changes.
File renamed without changes.
17 changes: 17 additions & 0 deletions src/app/[lng]/(main)/layout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import React from 'react';
import { FeatureCards } from '@/components/FeatureCards';

export default async function MainLayout({
children,
params: { lng },
}: {
children: React.ReactNode;
params: { lng: string };
}) {
return (
<>
{children}
<FeatureCards />
</>
);
}
2 changes: 1 addition & 1 deletion src/app/[lng]/page.tsx → src/app/[lng]/(main)/page.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import App from '../ui/app/App';
import App from '../../ui/app/App';
import { WidgetContainer, Widgets } from '@/components/Widgets';
import { Widget } from '@/components/Widgets/Widget';
import { getCookies } from '@/app/lib/getCookies';
Expand Down
2 changes: 0 additions & 2 deletions src/app/[lng]/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { AppProvider } from '@/providers/AppProvider';
import i18nConfig from 'i18nconfig';
import React from 'react';
import { FeatureCards } from '@/components/FeatureCards';
import { Snackbar } from '@/components/Snackbar';
import { PixelBg } from '@/components/illustrations/PixelBg';

Expand All @@ -15,7 +14,6 @@ export default async function RootLayout({
return (
<AppProvider lang={lng}>
{children}
<FeatureCards />
<Snackbar />
<PixelBg />
</AppProvider>
Expand Down

0 comments on commit 32e43cc

Please sign in to comment.