-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
18 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,26 @@ | ||
"use client" | ||
"use client"; | ||
|
||
import { Montserrat } from "next/font/google"; | ||
import './sass/main.scss'; | ||
import "./globals.sass"; | ||
// import 'bootstrap/dist/css/bootstrap.min.css'; | ||
import { useState, useEffect } from "react"; | ||
|
||
// import i18n (needs to be bundled ;)) | ||
import './i18n'; | ||
|
||
const montserrat = Montserrat({ subsets: ["latin"] }); | ||
|
||
export default function RootLayout({ children }) { | ||
//disable SSR whole project, this will make the project to be rendered only on client side | ||
const [isClient, setIsClient] = useState(false) | ||
|
||
useEffect(() => { | ||
setIsClient(true) | ||
}, []) | ||
|
||
return ( | ||
<html lang="en"> | ||
<body className={montserrat.className}>{children}</body> | ||
<html hola="bye"> | ||
<body className={montserrat.className}>{isClient ? children:null}</body> | ||
</html> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters