Skip to content

Commit

Permalink
Add missing style files to RootLayout (#300)
Browse files Browse the repository at this point in the history
GlobalStyle and ResponsiveSpacingStyle have been lost during v7 update
  • Loading branch information
SebiVPS authored Jul 15, 2024
1 parent f8265d3 commit 7d8410f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
15 changes: 9 additions & 6 deletions site/src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
import { GlobalStyle } from "@src/layout/GlobalStyle";
import { ResponsiveSpacingStyle } from "@src/util/ResponsiveSpacingStyle";
import StyledComponentsRegistry from "@src/util/StyledComponentsRegistry";
import type { Metadata } from "next";
import { ReactNode } from "react";

export const metadata: Metadata = {
title: "Comet Starter",
};

export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
export default function RootLayout({ children }: Readonly<{ children: ReactNode }>) {
return (
<html>
<body>
<StyledComponentsRegistry>{children}</StyledComponentsRegistry>
<StyledComponentsRegistry>
<GlobalStyle />
<ResponsiveSpacingStyle />
{children}
</StyledComponentsRegistry>
</body>
</html>
);
Expand Down
1 change: 1 addition & 0 deletions site/src/util/ResponsiveSpacingStyle.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"use client";
import { createGlobalStyle } from "styled-components";

const ResponsiveSpacingStyle = createGlobalStyle`
Expand Down

0 comments on commit 7d8410f

Please sign in to comment.