Skip to content

Commit

Permalink
🎨change: add styled-components-registry in layout.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
SayangHoney committed Dec 16, 2024
1 parent 61e12fc commit 1b99e39
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Metadata, Viewport } from 'next'
import { ReactNode } from 'react'
import "@/styles/globals.css";
import { Metadata, Viewport } from 'next';
import { ReactNode } from 'react';
import '@/styles/globals.css';
import StyledComponentsRegistry from '@/lib/registry';

export const metadata: Metadata = {
title: 'SpaceWak',
Expand All @@ -17,17 +18,19 @@ export const metadata: Metadata = {
url: '',
},
verification: {},
}
};

export const viewport: Viewport = {
width: 'device-width',
initialScale: 1,
}
};

export default function RootLayout({ children }: { children: ReactNode }) {
return (
<html lang="ko">
<body>{children}</body>
<body>
<StyledComponentsRegistry>{children}</StyledComponentsRegistry>
</body>
</html>
)
);
}

0 comments on commit 1b99e39

Please sign in to comment.