cleanup: components
This commit is contained in:
@@ -1,10 +1,11 @@
|
|||||||
import Footer from "./Footer";
|
import Footer from "./Footer";
|
||||||
import StaticLogoHeader from "./StaticLogoHeader";
|
import StaticLogoHeader from "./StaticLogoHeader";
|
||||||
|
import type { ReactNode } from "react";
|
||||||
|
|
||||||
type InfoPageProps = {
|
type InfoPageProps = {
|
||||||
title: string;
|
title: string;
|
||||||
subtitle?: string;
|
subtitle?: string;
|
||||||
children: React.ReactNode;
|
children: ReactNode;
|
||||||
};
|
};
|
||||||
|
|
||||||
export default function InfoPage({ title, subtitle, children }: InfoPageProps) {
|
export default function InfoPage({ title, subtitle, children }: InfoPageProps) {
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
import { SessionProvider } from "next-auth/react";
|
import { SessionProvider } from "next-auth/react";
|
||||||
|
import type { ReactNode } from "react";
|
||||||
|
|
||||||
export default function Providers({ children }: { children: React.ReactNode }) {
|
export default function Providers({ children }: { children: ReactNode }) {
|
||||||
return <SessionProvider>{children}</SessionProvider>;
|
return <SessionProvider>{children}</SessionProvider>;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user