Skip to content

Commit 2c04220

Browse files
authored
Merge pull request #19 from Iank-code/Development
feat: fix error on layout.tsx
2 parents cb2485c + d8672fd commit 2c04220

File tree

2 files changed

+8
-30
lines changed

2 files changed

+8
-30
lines changed

src/app/globals.css

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
11
@tailwind base;
22
@tailwind components;
3-
@tailwind utilities;
4-
5-
*,
6-
html {
7-
margin: 0;
8-
padding: 0;
9-
box-sizing: border-box;
10-
overflow-x: hidden;
11-
}
3+
@tailwind utilities;

src/app/layout.tsx

Lines changed: 7 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,21 @@
1-
"use client";
2-
1+
"use client"
32
import { Inter } from "next/font/google";
43
import "./globals.css";
54
import { Provider } from "react-redux";
65
import store from "@/lib/store";
7-
import Head from "next/head";
86
import { SessionProvider } from "next-auth/react";
97
import Navbar from "@/components/navbar/Navbar";
10-
import { ReactNode } from "react";
118

129
const inter = Inter({ subsets: ["latin"] });
10+
import "./globals.css";
1311

14-
interface RootLayoutProps {
15-
children: ReactNode;
16-
session: any; // Add session type if known, or replace `any` with the correct type
17-
}
18-
19-
export default function RootLayout({ children, session }: RootLayoutProps) {
12+
export default function RootLayout({
13+
children,
14+
session,
15+
}: Readonly<{ children: React.ReactNode, session: any }>) {
16+
console.log(typeof session)
2017
return (
2118
<html lang="en">
22-
<Head>
23-
<title>SIL 2.0</title>
24-
<meta
25-
name="description"
26-
content="All-in-one platform to create content, generate captions with Al, and schedule your posts on social media!"
27-
/>
28-
<meta
29-
name="viewport"
30-
content="minimum-scale=1, initial-scale=1, width=device-width"
31-
/>
32-
</Head>
3319
<body className={inter.className}>
3420
<Provider store={store}>
3521
<SessionProvider session={session} refetchInterval={2 * 60}>

0 commit comments

Comments
 (0)