ScroolToTop icon button
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import type { Metadata } from "next";
|
||||
import { Geist, Geist_Mono } from "next/font/google";
|
||||
import {dir} from "i18next";
|
||||
import { languages } from "../i18n/settings";
|
||||
import { dir } from "i18next";
|
||||
import "./globals.css";
|
||||
import UpScrollIcon from "@/components/upScroll";
|
||||
|
||||
const geistSans = Geist({
|
||||
variable: "--font-geist-sans",
|
||||
@@ -19,18 +19,21 @@ export const metadata: Metadata = {
|
||||
description: "Generated by create next app",
|
||||
};
|
||||
|
||||
|
||||
export default function RootLayout({
|
||||
children,
|
||||
params
|
||||
params,
|
||||
}: Readonly<{
|
||||
children: React.ReactNode;
|
||||
params:{lang:string}
|
||||
params: { lang: string };
|
||||
}>) {
|
||||
|
||||
|
||||
|
||||
return (
|
||||
<html lang={params.lang} dir={dir(params.lang)}>
|
||||
<body>
|
||||
{children}
|
||||
<UpScrollIcon/>
|
||||
</body>
|
||||
</html>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user