authentication check on page
This commit is contained in:
@@ -8,6 +8,7 @@ import CookieBanner from "../../components/cookieBanner";
|
|||||||
import Footer from "../../components/footer";
|
import Footer from "../../components/footer";
|
||||||
import Header from "../../components/header";
|
import Header from "../../components/header";
|
||||||
import { useSession, getSession } from "next-auth/react";
|
import { useSession, getSession } from "next-auth/react";
|
||||||
|
import NoSessionWarning from "../../components/nosession";
|
||||||
|
|
||||||
const Home = (props) => {
|
const Home = (props) => {
|
||||||
const { footerLinks, pages } = props;
|
const { footerLinks, pages } = props;
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ import Header from "../../components/header";
|
|||||||
import ViewAll from "../../components/myportal/viewall";
|
import ViewAll from "../../components/myportal/viewall";
|
||||||
import TimeOut from "../../components/timeout";
|
import TimeOut from "../../components/timeout";
|
||||||
import { getSession, useSession } from "next-auth/react";
|
import { getSession, useSession } from "next-auth/react";
|
||||||
|
import NoSessionWarning from "../../components/nosession";
|
||||||
|
|
||||||
const Home = (props) => {
|
const Home = (props) => {
|
||||||
const { footerLinks, pages } = props;
|
const { footerLinks, pages } = props;
|
||||||
|
|||||||
Reference in New Issue
Block a user