- Added descriptive comments for various admin management pages including announcements, banners, blacklist, chats, and more. - Documented user-facing pages such as chat, communications, dashboard, and profile. - Included comments for authentication-related pages like password reset and invite acceptance. - Enhanced clarity on the purpose and routing of each page in the application.
20 lines
617 B
TypeScript
20 lines
617 B
TypeScript
import { useEffect } from "react";
|
|
import { AreaRiservataLayout } from "~/components/Layout";
|
|
import { LoadingPage } from "~/components/loading";
|
|
import type { NextPageWithLayout } from "../_app";
|
|
|
|
/**
|
|
* Pagina di caricamento dell'area riservata: /load-page
|
|
* Reindirizza alla dashboard dopo il caricamento.
|
|
*/
|
|
const LoadPage: NextPageWithLayout = () => {
|
|
useEffect(() => {
|
|
window.location.replace("/area-riservata/dashboard");
|
|
}, []);
|
|
return <LoadingPage />;
|
|
};
|
|
export default LoadPage;
|
|
|
|
LoadPage.getLayout = function getLayout(page) {
|
|
return <AreaRiservataLayout noSidebar>{page}</AreaRiservataLayout>;
|
|
};
|