diff --git a/app/[locale]/(protected)/app/chat/layout copy.tsx b/app/[locale]/(protected)/app/chat/layout copy.tsx index 9804c128..5666cfeb 100644 --- a/app/[locale]/(protected)/app/chat/layout copy.tsx +++ b/app/[locale]/(protected)/app/chat/layout copy.tsx @@ -1,7 +1,7 @@ import { Metadata } from "next"; export const metadata: Metadata = { - title: "Dashcode Next Js", + title: "Media Hub | POLRI", description: "Dashcode is a popular dashboard template.", }; const Layout = ({ children }: { children: React.ReactNode }) => { diff --git a/app/[locale]/(protected)/app/email/layout copy.tsx b/app/[locale]/(protected)/app/email/layout copy.tsx index 9804c128..5666cfeb 100644 --- a/app/[locale]/(protected)/app/email/layout copy.tsx +++ b/app/[locale]/(protected)/app/email/layout copy.tsx @@ -1,7 +1,7 @@ import { Metadata } from "next"; export const metadata: Metadata = { - title: "Dashcode Next Js", + title: "Media Hub | POLRI", description: "Dashcode is a popular dashboard template.", }; const Layout = ({ children }: { children: React.ReactNode }) => { diff --git a/app/[locale]/(protected)/app/kanban/kanban-app.tsx b/app/[locale]/(protected)/app/kanban/kanban-app.tsx index 18905431..218a3c98 100644 --- a/app/[locale]/(protected)/app/kanban/kanban-app.tsx +++ b/app/[locale]/(protected)/app/kanban/kanban-app.tsx @@ -14,7 +14,7 @@ import { import { SortableContext, arrayMove } from "@dnd-kit/sortable"; import ColumnContainer from "./column" import TaskCard from './task'; -import { createPortal } from "react-dom"; +// import { createPortal } from "react-dom"; import AddBoard from './add-board'; import CreateTask from "./create-task"; import { useTranslations } from 'next-intl'; @@ -147,7 +147,7 @@ const KanBanApp = ({ defaultCols, defaultTasks }: { defaultCols: Column[], defau - {createPortal( + {/* {createPortal( {activeColumn && ( } , document.body - )} + )} */} { diff --git a/app/[locale]/(protected)/app/layout.tsx b/app/[locale]/(protected)/app/layout.tsx index 9804c128..5666cfeb 100644 --- a/app/[locale]/(protected)/app/layout.tsx +++ b/app/[locale]/(protected)/app/layout.tsx @@ -1,7 +1,7 @@ import { Metadata } from "next"; export const metadata: Metadata = { - title: "Dashcode Next Js", + title: "Media Hub | POLRI", description: "Dashcode is a popular dashboard template.", }; const Layout = ({ children }: { children: React.ReactNode }) => { diff --git a/app/[locale]/(protected)/blocks/layout.tsx b/app/[locale]/(protected)/blocks/layout.tsx index 9804c128..5666cfeb 100644 --- a/app/[locale]/(protected)/blocks/layout.tsx +++ b/app/[locale]/(protected)/blocks/layout.tsx @@ -1,7 +1,7 @@ import { Metadata } from "next"; export const metadata: Metadata = { - title: "Dashcode Next Js", + title: "Media Hub | POLRI", description: "Dashcode is a popular dashboard template.", }; const Layout = ({ children }: { children: React.ReactNode }) => { diff --git a/app/[locale]/(protected)/changelog/layout.tsx b/app/[locale]/(protected)/changelog/layout.tsx index 9804c128..5666cfeb 100644 --- a/app/[locale]/(protected)/changelog/layout.tsx +++ b/app/[locale]/(protected)/changelog/layout.tsx @@ -1,7 +1,7 @@ import { Metadata } from "next"; export const metadata: Metadata = { - title: "Dashcode Next Js", + title: "Media Hub | POLRI", description: "Dashcode is a popular dashboard template.", }; const Layout = ({ children }: { children: React.ReactNode }) => { diff --git a/app/[locale]/(protected)/charts/appex-charts/layout.tsx b/app/[locale]/(protected)/charts/appex-charts/layout.tsx index 9804c128..5666cfeb 100644 --- a/app/[locale]/(protected)/charts/appex-charts/layout.tsx +++ b/app/[locale]/(protected)/charts/appex-charts/layout.tsx @@ -1,7 +1,7 @@ import { Metadata } from "next"; export const metadata: Metadata = { - title: "Dashcode Next Js", + title: "Media Hub | POLRI", description: "Dashcode is a popular dashboard template.", }; const Layout = ({ children }: { children: React.ReactNode }) => { diff --git a/app/[locale]/(protected)/charts/chart-js/layout.tsx b/app/[locale]/(protected)/charts/chart-js/layout.tsx index 9804c128..5666cfeb 100644 --- a/app/[locale]/(protected)/charts/chart-js/layout.tsx +++ b/app/[locale]/(protected)/charts/chart-js/layout.tsx @@ -1,7 +1,7 @@ import { Metadata } from "next"; export const metadata: Metadata = { - title: "Dashcode Next Js", + title: "Media Hub | POLRI", description: "Dashcode is a popular dashboard template.", }; const Layout = ({ children }: { children: React.ReactNode }) => { diff --git a/app/[locale]/(protected)/charts/layout.tsx b/app/[locale]/(protected)/charts/layout.tsx index 9804c128..5666cfeb 100644 --- a/app/[locale]/(protected)/charts/layout.tsx +++ b/app/[locale]/(protected)/charts/layout.tsx @@ -1,7 +1,7 @@ import { Metadata } from "next"; export const metadata: Metadata = { - title: "Dashcode Next Js", + title: "Media Hub | POLRI", description: "Dashcode is a popular dashboard template.", }; const Layout = ({ children }: { children: React.ReactNode }) => { diff --git a/app/[locale]/(protected)/charts/rechart/layout.tsx b/app/[locale]/(protected)/charts/rechart/layout.tsx index 9804c128..5666cfeb 100644 --- a/app/[locale]/(protected)/charts/rechart/layout.tsx +++ b/app/[locale]/(protected)/charts/rechart/layout.tsx @@ -1,7 +1,7 @@ import { Metadata } from "next"; export const metadata: Metadata = { - title: "Dashcode Next Js", + title: "Media Hub | POLRI", description: "Dashcode is a popular dashboard template.", }; const Layout = ({ children }: { children: React.ReactNode }) => { diff --git a/app/[locale]/(protected)/components/accordion/layout.tsx b/app/[locale]/(protected)/components/accordion/layout.tsx index 9804c128..5666cfeb 100644 --- a/app/[locale]/(protected)/components/accordion/layout.tsx +++ b/app/[locale]/(protected)/components/accordion/layout.tsx @@ -1,7 +1,7 @@ import { Metadata } from "next"; export const metadata: Metadata = { - title: "Dashcode Next Js", + title: "Media Hub | POLRI", description: "Dashcode is a popular dashboard template.", }; const Layout = ({ children }: { children: React.ReactNode }) => { diff --git a/app/[locale]/(protected)/components/alert-dialog/layout.tsx b/app/[locale]/(protected)/components/alert-dialog/layout.tsx index 9804c128..5666cfeb 100644 --- a/app/[locale]/(protected)/components/alert-dialog/layout.tsx +++ b/app/[locale]/(protected)/components/alert-dialog/layout.tsx @@ -1,7 +1,7 @@ import { Metadata } from "next"; export const metadata: Metadata = { - title: "Dashcode Next Js", + title: "Media Hub | POLRI", description: "Dashcode is a popular dashboard template.", }; const Layout = ({ children }: { children: React.ReactNode }) => { diff --git a/app/[locale]/(protected)/components/alert/layout.tsx b/app/[locale]/(protected)/components/alert/layout.tsx index 9804c128..5666cfeb 100644 --- a/app/[locale]/(protected)/components/alert/layout.tsx +++ b/app/[locale]/(protected)/components/alert/layout.tsx @@ -1,7 +1,7 @@ import { Metadata } from "next"; export const metadata: Metadata = { - title: "Dashcode Next Js", + title: "Media Hub | POLRI", description: "Dashcode is a popular dashboard template.", }; const Layout = ({ children }: { children: React.ReactNode }) => { diff --git a/app/[locale]/(protected)/components/avatar/layout.tsx b/app/[locale]/(protected)/components/avatar/layout.tsx index 9804c128..5666cfeb 100644 --- a/app/[locale]/(protected)/components/avatar/layout.tsx +++ b/app/[locale]/(protected)/components/avatar/layout.tsx @@ -1,7 +1,7 @@ import { Metadata } from "next"; export const metadata: Metadata = { - title: "Dashcode Next Js", + title: "Media Hub | POLRI", description: "Dashcode is a popular dashboard template.", }; const Layout = ({ children }: { children: React.ReactNode }) => { diff --git a/app/[locale]/(protected)/components/badge/layout.tsx b/app/[locale]/(protected)/components/badge/layout.tsx index 9804c128..5666cfeb 100644 --- a/app/[locale]/(protected)/components/badge/layout.tsx +++ b/app/[locale]/(protected)/components/badge/layout.tsx @@ -1,7 +1,7 @@ import { Metadata } from "next"; export const metadata: Metadata = { - title: "Dashcode Next Js", + title: "Media Hub | POLRI", description: "Dashcode is a popular dashboard template.", }; const Layout = ({ children }: { children: React.ReactNode }) => { diff --git a/app/[locale]/(protected)/components/breadcrumb/layout.tsx b/app/[locale]/(protected)/components/breadcrumb/layout.tsx index 9804c128..5666cfeb 100644 --- a/app/[locale]/(protected)/components/breadcrumb/layout.tsx +++ b/app/[locale]/(protected)/components/breadcrumb/layout.tsx @@ -1,7 +1,7 @@ import { Metadata } from "next"; export const metadata: Metadata = { - title: "Dashcode Next Js", + title: "Media Hub | POLRI", description: "Dashcode is a popular dashboard template.", }; const Layout = ({ children }: { children: React.ReactNode }) => { diff --git a/app/[locale]/(protected)/components/button/layout.tsx b/app/[locale]/(protected)/components/button/layout.tsx index 9804c128..5666cfeb 100644 --- a/app/[locale]/(protected)/components/button/layout.tsx +++ b/app/[locale]/(protected)/components/button/layout.tsx @@ -1,7 +1,7 @@ import { Metadata } from "next"; export const metadata: Metadata = { - title: "Dashcode Next Js", + title: "Media Hub | POLRI", description: "Dashcode is a popular dashboard template.", }; const Layout = ({ children }: { children: React.ReactNode }) => { diff --git a/app/[locale]/(protected)/components/calendar/layout.tsx b/app/[locale]/(protected)/components/calendar/layout.tsx index 9804c128..5666cfeb 100644 --- a/app/[locale]/(protected)/components/calendar/layout.tsx +++ b/app/[locale]/(protected)/components/calendar/layout.tsx @@ -1,7 +1,7 @@ import { Metadata } from "next"; export const metadata: Metadata = { - title: "Dashcode Next Js", + title: "Media Hub | POLRI", description: "Dashcode is a popular dashboard template.", }; const Layout = ({ children }: { children: React.ReactNode }) => { diff --git a/app/[locale]/(protected)/components/card/layout.tsx b/app/[locale]/(protected)/components/card/layout.tsx index 9804c128..5666cfeb 100644 --- a/app/[locale]/(protected)/components/card/layout.tsx +++ b/app/[locale]/(protected)/components/card/layout.tsx @@ -1,7 +1,7 @@ import { Metadata } from "next"; export const metadata: Metadata = { - title: "Dashcode Next Js", + title: "Media Hub | POLRI", description: "Dashcode is a popular dashboard template.", }; const Layout = ({ children }: { children: React.ReactNode }) => { diff --git a/app/[locale]/(protected)/components/carousel/layout.tsx b/app/[locale]/(protected)/components/carousel/layout.tsx index 9804c128..5666cfeb 100644 --- a/app/[locale]/(protected)/components/carousel/layout.tsx +++ b/app/[locale]/(protected)/components/carousel/layout.tsx @@ -1,7 +1,7 @@ import { Metadata } from "next"; export const metadata: Metadata = { - title: "Dashcode Next Js", + title: "Media Hub | POLRI", description: "Dashcode is a popular dashboard template.", }; const Layout = ({ children }: { children: React.ReactNode }) => { diff --git a/app/[locale]/(protected)/components/collapsible/layout.tsx b/app/[locale]/(protected)/components/collapsible/layout.tsx index 9804c128..5666cfeb 100644 --- a/app/[locale]/(protected)/components/collapsible/layout.tsx +++ b/app/[locale]/(protected)/components/collapsible/layout.tsx @@ -1,7 +1,7 @@ import { Metadata } from "next"; export const metadata: Metadata = { - title: "Dashcode Next Js", + title: "Media Hub | POLRI", description: "Dashcode is a popular dashboard template.", }; const Layout = ({ children }: { children: React.ReactNode }) => { diff --git a/app/[locale]/(protected)/components/colors/layout.tsx b/app/[locale]/(protected)/components/colors/layout.tsx index 9804c128..5666cfeb 100644 --- a/app/[locale]/(protected)/components/colors/layout.tsx +++ b/app/[locale]/(protected)/components/colors/layout.tsx @@ -1,7 +1,7 @@ import { Metadata } from "next"; export const metadata: Metadata = { - title: "Dashcode Next Js", + title: "Media Hub | POLRI", description: "Dashcode is a popular dashboard template.", }; const Layout = ({ children }: { children: React.ReactNode }) => { diff --git a/app/[locale]/(protected)/components/context-menu/layout.tsx b/app/[locale]/(protected)/components/context-menu/layout.tsx index 9804c128..5666cfeb 100644 --- a/app/[locale]/(protected)/components/context-menu/layout.tsx +++ b/app/[locale]/(protected)/components/context-menu/layout.tsx @@ -1,7 +1,7 @@ import { Metadata } from "next"; export const metadata: Metadata = { - title: "Dashcode Next Js", + title: "Media Hub | POLRI", description: "Dashcode is a popular dashboard template.", }; const Layout = ({ children }: { children: React.ReactNode }) => { diff --git a/app/[locale]/(protected)/components/dialog/layout.tsx b/app/[locale]/(protected)/components/dialog/layout.tsx index 9804c128..5666cfeb 100644 --- a/app/[locale]/(protected)/components/dialog/layout.tsx +++ b/app/[locale]/(protected)/components/dialog/layout.tsx @@ -1,7 +1,7 @@ import { Metadata } from "next"; export const metadata: Metadata = { - title: "Dashcode Next Js", + title: "Media Hub | POLRI", description: "Dashcode is a popular dashboard template.", }; const Layout = ({ children }: { children: React.ReactNode }) => { diff --git a/app/[locale]/(protected)/components/drawer/layout.tsx b/app/[locale]/(protected)/components/drawer/layout.tsx index 9804c128..5666cfeb 100644 --- a/app/[locale]/(protected)/components/drawer/layout.tsx +++ b/app/[locale]/(protected)/components/drawer/layout.tsx @@ -1,7 +1,7 @@ import { Metadata } from "next"; export const metadata: Metadata = { - title: "Dashcode Next Js", + title: "Media Hub | POLRI", description: "Dashcode is a popular dashboard template.", }; const Layout = ({ children }: { children: React.ReactNode }) => { diff --git a/app/[locale]/(protected)/components/dropdown/layout.tsx b/app/[locale]/(protected)/components/dropdown/layout.tsx index 9804c128..5666cfeb 100644 --- a/app/[locale]/(protected)/components/dropdown/layout.tsx +++ b/app/[locale]/(protected)/components/dropdown/layout.tsx @@ -1,7 +1,7 @@ import { Metadata } from "next"; export const metadata: Metadata = { - title: "Dashcode Next Js", + title: "Media Hub | POLRI", description: "Dashcode is a popular dashboard template.", }; const Layout = ({ children }: { children: React.ReactNode }) => { diff --git a/app/[locale]/(protected)/components/hover-card/layout.tsx b/app/[locale]/(protected)/components/hover-card/layout.tsx index 9804c128..5666cfeb 100644 --- a/app/[locale]/(protected)/components/hover-card/layout.tsx +++ b/app/[locale]/(protected)/components/hover-card/layout.tsx @@ -1,7 +1,7 @@ import { Metadata } from "next"; export const metadata: Metadata = { - title: "Dashcode Next Js", + title: "Media Hub | POLRI", description: "Dashcode is a popular dashboard template.", }; const Layout = ({ children }: { children: React.ReactNode }) => { diff --git a/app/[locale]/(protected)/components/menu-bar/layout.tsx b/app/[locale]/(protected)/components/menu-bar/layout.tsx index 9804c128..5666cfeb 100644 --- a/app/[locale]/(protected)/components/menu-bar/layout.tsx +++ b/app/[locale]/(protected)/components/menu-bar/layout.tsx @@ -1,7 +1,7 @@ import { Metadata } from "next"; export const metadata: Metadata = { - title: "Dashcode Next Js", + title: "Media Hub | POLRI", description: "Dashcode is a popular dashboard template.", }; const Layout = ({ children }: { children: React.ReactNode }) => { diff --git a/app/[locale]/(protected)/components/navigation-menu/layout.tsx b/app/[locale]/(protected)/components/navigation-menu/layout.tsx index 9804c128..5666cfeb 100644 --- a/app/[locale]/(protected)/components/navigation-menu/layout.tsx +++ b/app/[locale]/(protected)/components/navigation-menu/layout.tsx @@ -1,7 +1,7 @@ import { Metadata } from "next"; export const metadata: Metadata = { - title: "Dashcode Next Js", + title: "Media Hub | POLRI", description: "Dashcode is a popular dashboard template.", }; const Layout = ({ children }: { children: React.ReactNode }) => { diff --git a/app/[locale]/(protected)/components/pagination/layout.tsx b/app/[locale]/(protected)/components/pagination/layout.tsx index 9804c128..5666cfeb 100644 --- a/app/[locale]/(protected)/components/pagination/layout.tsx +++ b/app/[locale]/(protected)/components/pagination/layout.tsx @@ -1,7 +1,7 @@ import { Metadata } from "next"; export const metadata: Metadata = { - title: "Dashcode Next Js", + title: "Media Hub | POLRI", description: "Dashcode is a popular dashboard template.", }; const Layout = ({ children }: { children: React.ReactNode }) => { diff --git a/app/[locale]/(protected)/components/popover/layout.tsx b/app/[locale]/(protected)/components/popover/layout.tsx index 9804c128..5666cfeb 100644 --- a/app/[locale]/(protected)/components/popover/layout.tsx +++ b/app/[locale]/(protected)/components/popover/layout.tsx @@ -1,7 +1,7 @@ import { Metadata } from "next"; export const metadata: Metadata = { - title: "Dashcode Next Js", + title: "Media Hub | POLRI", description: "Dashcode is a popular dashboard template.", }; const Layout = ({ children }: { children: React.ReactNode }) => { diff --git a/app/[locale]/(protected)/components/progress/layout.tsx b/app/[locale]/(protected)/components/progress/layout.tsx index 9804c128..5666cfeb 100644 --- a/app/[locale]/(protected)/components/progress/layout.tsx +++ b/app/[locale]/(protected)/components/progress/layout.tsx @@ -1,7 +1,7 @@ import { Metadata } from "next"; export const metadata: Metadata = { - title: "Dashcode Next Js", + title: "Media Hub | POLRI", description: "Dashcode is a popular dashboard template.", }; const Layout = ({ children }: { children: React.ReactNode }) => { diff --git a/app/[locale]/(protected)/components/resizable/layout.tsx b/app/[locale]/(protected)/components/resizable/layout.tsx index 9804c128..5666cfeb 100644 --- a/app/[locale]/(protected)/components/resizable/layout.tsx +++ b/app/[locale]/(protected)/components/resizable/layout.tsx @@ -1,7 +1,7 @@ import { Metadata } from "next"; export const metadata: Metadata = { - title: "Dashcode Next Js", + title: "Media Hub | POLRI", description: "Dashcode is a popular dashboard template.", }; const Layout = ({ children }: { children: React.ReactNode }) => { diff --git a/app/[locale]/(protected)/components/scroll-area/layout.tsx b/app/[locale]/(protected)/components/scroll-area/layout.tsx index 9804c128..5666cfeb 100644 --- a/app/[locale]/(protected)/components/scroll-area/layout.tsx +++ b/app/[locale]/(protected)/components/scroll-area/layout.tsx @@ -1,7 +1,7 @@ import { Metadata } from "next"; export const metadata: Metadata = { - title: "Dashcode Next Js", + title: "Media Hub | POLRI", description: "Dashcode is a popular dashboard template.", }; const Layout = ({ children }: { children: React.ReactNode }) => { diff --git a/app/[locale]/(protected)/components/separator/layout.tsx b/app/[locale]/(protected)/components/separator/layout.tsx index 9804c128..5666cfeb 100644 --- a/app/[locale]/(protected)/components/separator/layout.tsx +++ b/app/[locale]/(protected)/components/separator/layout.tsx @@ -1,7 +1,7 @@ import { Metadata } from "next"; export const metadata: Metadata = { - title: "Dashcode Next Js", + title: "Media Hub | POLRI", description: "Dashcode is a popular dashboard template.", }; const Layout = ({ children }: { children: React.ReactNode }) => { diff --git a/app/[locale]/(protected)/components/sheet/layout.tsx b/app/[locale]/(protected)/components/sheet/layout.tsx index 9804c128..5666cfeb 100644 --- a/app/[locale]/(protected)/components/sheet/layout.tsx +++ b/app/[locale]/(protected)/components/sheet/layout.tsx @@ -1,7 +1,7 @@ import { Metadata } from "next"; export const metadata: Metadata = { - title: "Dashcode Next Js", + title: "Media Hub | POLRI", description: "Dashcode is a popular dashboard template.", }; const Layout = ({ children }: { children: React.ReactNode }) => { diff --git a/app/[locale]/(protected)/components/skeleton/layout.tsx b/app/[locale]/(protected)/components/skeleton/layout.tsx index 9804c128..5666cfeb 100644 --- a/app/[locale]/(protected)/components/skeleton/layout.tsx +++ b/app/[locale]/(protected)/components/skeleton/layout.tsx @@ -1,7 +1,7 @@ import { Metadata } from "next"; export const metadata: Metadata = { - title: "Dashcode Next Js", + title: "Media Hub | POLRI", description: "Dashcode is a popular dashboard template.", }; const Layout = ({ children }: { children: React.ReactNode }) => { diff --git a/app/[locale]/(protected)/components/sonner/layout.tsx b/app/[locale]/(protected)/components/sonner/layout.tsx index 9804c128..5666cfeb 100644 --- a/app/[locale]/(protected)/components/sonner/layout.tsx +++ b/app/[locale]/(protected)/components/sonner/layout.tsx @@ -1,7 +1,7 @@ import { Metadata } from "next"; export const metadata: Metadata = { - title: "Dashcode Next Js", + title: "Media Hub | POLRI", description: "Dashcode is a popular dashboard template.", }; const Layout = ({ children }: { children: React.ReactNode }) => { diff --git a/app/[locale]/(protected)/components/tabs/layout.tsx b/app/[locale]/(protected)/components/tabs/layout.tsx index 9804c128..5666cfeb 100644 --- a/app/[locale]/(protected)/components/tabs/layout.tsx +++ b/app/[locale]/(protected)/components/tabs/layout.tsx @@ -1,7 +1,7 @@ import { Metadata } from "next"; export const metadata: Metadata = { - title: "Dashcode Next Js", + title: "Media Hub | POLRI", description: "Dashcode is a popular dashboard template.", }; const Layout = ({ children }: { children: React.ReactNode }) => { diff --git a/app/[locale]/(protected)/components/toast/layout.tsx b/app/[locale]/(protected)/components/toast/layout.tsx index 9804c128..5666cfeb 100644 --- a/app/[locale]/(protected)/components/toast/layout.tsx +++ b/app/[locale]/(protected)/components/toast/layout.tsx @@ -1,7 +1,7 @@ import { Metadata } from "next"; export const metadata: Metadata = { - title: "Dashcode Next Js", + title: "Media Hub | POLRI", description: "Dashcode is a popular dashboard template.", }; const Layout = ({ children }: { children: React.ReactNode }) => { diff --git a/app/[locale]/(protected)/components/toggle/layout.tsx b/app/[locale]/(protected)/components/toggle/layout.tsx index 9804c128..5666cfeb 100644 --- a/app/[locale]/(protected)/components/toggle/layout.tsx +++ b/app/[locale]/(protected)/components/toggle/layout.tsx @@ -1,7 +1,7 @@ import { Metadata } from "next"; export const metadata: Metadata = { - title: "Dashcode Next Js", + title: "Media Hub | POLRI", description: "Dashcode is a popular dashboard template.", }; const Layout = ({ children }: { children: React.ReactNode }) => { diff --git a/app/[locale]/(protected)/components/tooltip/layout.tsx b/app/[locale]/(protected)/components/tooltip/layout.tsx index 9804c128..5666cfeb 100644 --- a/app/[locale]/(protected)/components/tooltip/layout.tsx +++ b/app/[locale]/(protected)/components/tooltip/layout.tsx @@ -1,7 +1,7 @@ import { Metadata } from "next"; export const metadata: Metadata = { - title: "Dashcode Next Js", + title: "Media Hub | POLRI", description: "Dashcode is a popular dashboard template.", }; const Layout = ({ children }: { children: React.ReactNode }) => { diff --git a/app/[locale]/(protected)/components/typography/layout.tsx b/app/[locale]/(protected)/components/typography/layout.tsx index 9804c128..5666cfeb 100644 --- a/app/[locale]/(protected)/components/typography/layout.tsx +++ b/app/[locale]/(protected)/components/typography/layout.tsx @@ -1,7 +1,7 @@ import { Metadata } from "next"; export const metadata: Metadata = { - title: "Dashcode Next Js", + title: "Media Hub | POLRI", description: "Dashcode is a popular dashboard template.", }; const Layout = ({ children }: { children: React.ReactNode }) => { diff --git a/app/[locale]/(protected)/contributor/content/audio/layout.tsx b/app/[locale]/(protected)/contributor/content/audio/layout.tsx index 9804c128..5666cfeb 100644 --- a/app/[locale]/(protected)/contributor/content/audio/layout.tsx +++ b/app/[locale]/(protected)/contributor/content/audio/layout.tsx @@ -1,7 +1,7 @@ import { Metadata } from "next"; export const metadata: Metadata = { - title: "Dashcode Next Js", + title: "Media Hub | POLRI", description: "Dashcode is a popular dashboard template.", }; const Layout = ({ children }: { children: React.ReactNode }) => { diff --git a/app/[locale]/(protected)/contributor/content/image/layout.tsx b/app/[locale]/(protected)/contributor/content/image/layout.tsx index 9804c128..5666cfeb 100644 --- a/app/[locale]/(protected)/contributor/content/image/layout.tsx +++ b/app/[locale]/(protected)/contributor/content/image/layout.tsx @@ -1,7 +1,7 @@ import { Metadata } from "next"; export const metadata: Metadata = { - title: "Dashcode Next Js", + title: "Media Hub | POLRI", description: "Dashcode is a popular dashboard template.", }; const Layout = ({ children }: { children: React.ReactNode }) => { diff --git a/app/[locale]/(protected)/contributor/content/nulis-ai/layout.tsx b/app/[locale]/(protected)/contributor/content/nulis-ai/layout.tsx index 9804c128..5666cfeb 100644 --- a/app/[locale]/(protected)/contributor/content/nulis-ai/layout.tsx +++ b/app/[locale]/(protected)/contributor/content/nulis-ai/layout.tsx @@ -1,7 +1,7 @@ import { Metadata } from "next"; export const metadata: Metadata = { - title: "Dashcode Next Js", + title: "Media Hub | POLRI", description: "Dashcode is a popular dashboard template.", }; const Layout = ({ children }: { children: React.ReactNode }) => { diff --git a/app/[locale]/(protected)/contributor/content/spit/layout.tsx b/app/[locale]/(protected)/contributor/content/spit/layout.tsx index 9804c128..5666cfeb 100644 --- a/app/[locale]/(protected)/contributor/content/spit/layout.tsx +++ b/app/[locale]/(protected)/contributor/content/spit/layout.tsx @@ -1,7 +1,7 @@ import { Metadata } from "next"; export const metadata: Metadata = { - title: "Dashcode Next Js", + title: "Media Hub | POLRI", description: "Dashcode is a popular dashboard template.", }; const Layout = ({ children }: { children: React.ReactNode }) => { diff --git a/app/[locale]/(protected)/contributor/content/teks/layout.tsx b/app/[locale]/(protected)/contributor/content/teks/layout.tsx index 9804c128..5666cfeb 100644 --- a/app/[locale]/(protected)/contributor/content/teks/layout.tsx +++ b/app/[locale]/(protected)/contributor/content/teks/layout.tsx @@ -1,7 +1,7 @@ import { Metadata } from "next"; export const metadata: Metadata = { - title: "Dashcode Next Js", + title: "Media Hub | POLRI", description: "Dashcode is a popular dashboard template.", }; const Layout = ({ children }: { children: React.ReactNode }) => { diff --git a/app/[locale]/(protected)/contributor/content/video/layout.tsx b/app/[locale]/(protected)/contributor/content/video/layout.tsx index 9804c128..5666cfeb 100644 --- a/app/[locale]/(protected)/contributor/content/video/layout.tsx +++ b/app/[locale]/(protected)/contributor/content/video/layout.tsx @@ -1,7 +1,7 @@ import { Metadata } from "next"; export const metadata: Metadata = { - title: "Dashcode Next Js", + title: "Media Hub | POLRI", description: "Dashcode is a popular dashboard template.", }; const Layout = ({ children }: { children: React.ReactNode }) => { diff --git a/app/[locale]/(protected)/dashboard/layout.tsx b/app/[locale]/(protected)/dashboard/layout.tsx index 8d0beab5..e4864452 100644 --- a/app/[locale]/(protected)/dashboard/layout.tsx +++ b/app/[locale]/(protected)/dashboard/layout.tsx @@ -2,7 +2,7 @@ import PageTitle from "@/components/page-title"; import { Metadata } from "next"; export const metadata: Metadata = { - title: "Dashcode Next Js", + title: "Media Hub | POLRI", description: "Dashcode is a popular dashboard template.", }; const Layout = ({ children }: { children: React.ReactNode }) => { diff --git a/app/[locale]/(protected)/ecommerce/backend/layout.tsx b/app/[locale]/(protected)/ecommerce/backend/layout.tsx index 9804c128..5666cfeb 100644 --- a/app/[locale]/(protected)/ecommerce/backend/layout.tsx +++ b/app/[locale]/(protected)/ecommerce/backend/layout.tsx @@ -1,7 +1,7 @@ import { Metadata } from "next"; export const metadata: Metadata = { - title: "Dashcode Next Js", + title: "Media Hub | POLRI", description: "Dashcode is a popular dashboard template.", }; const Layout = ({ children }: { children: React.ReactNode }) => { diff --git a/app/[locale]/(protected)/ecommerce/layout.tsx b/app/[locale]/(protected)/ecommerce/layout.tsx index 9804c128..5666cfeb 100644 --- a/app/[locale]/(protected)/ecommerce/layout.tsx +++ b/app/[locale]/(protected)/ecommerce/layout.tsx @@ -1,7 +1,7 @@ import { Metadata } from "next"; export const metadata: Metadata = { - title: "Dashcode Next Js", + title: "Media Hub | POLRI", description: "Dashcode is a popular dashboard template.", }; const Layout = ({ children }: { children: React.ReactNode }) => { diff --git a/app/[locale]/(protected)/forms/checkbox/layout.tsx b/app/[locale]/(protected)/forms/checkbox/layout.tsx index 9804c128..5666cfeb 100644 --- a/app/[locale]/(protected)/forms/checkbox/layout.tsx +++ b/app/[locale]/(protected)/forms/checkbox/layout.tsx @@ -1,7 +1,7 @@ import { Metadata } from "next"; export const metadata: Metadata = { - title: "Dashcode Next Js", + title: "Media Hub | POLRI", description: "Dashcode is a popular dashboard template.", }; const Layout = ({ children }: { children: React.ReactNode }) => { diff --git a/app/[locale]/(protected)/forms/combobox/layout.tsx b/app/[locale]/(protected)/forms/combobox/layout.tsx index 9804c128..5666cfeb 100644 --- a/app/[locale]/(protected)/forms/combobox/layout.tsx +++ b/app/[locale]/(protected)/forms/combobox/layout.tsx @@ -1,7 +1,7 @@ import { Metadata } from "next"; export const metadata: Metadata = { - title: "Dashcode Next Js", + title: "Media Hub | POLRI", description: "Dashcode is a popular dashboard template.", }; const Layout = ({ children }: { children: React.ReactNode }) => { diff --git a/app/[locale]/(protected)/forms/command/layout.tsx b/app/[locale]/(protected)/forms/command/layout.tsx index 9804c128..5666cfeb 100644 --- a/app/[locale]/(protected)/forms/command/layout.tsx +++ b/app/[locale]/(protected)/forms/command/layout.tsx @@ -1,7 +1,7 @@ import { Metadata } from "next"; export const metadata: Metadata = { - title: "Dashcode Next Js", + title: "Media Hub | POLRI", description: "Dashcode is a popular dashboard template.", }; const Layout = ({ children }: { children: React.ReactNode }) => { diff --git a/app/[locale]/(protected)/forms/form-validation/layout.tsx b/app/[locale]/(protected)/forms/form-validation/layout.tsx index 9804c128..5666cfeb 100644 --- a/app/[locale]/(protected)/forms/form-validation/layout.tsx +++ b/app/[locale]/(protected)/forms/form-validation/layout.tsx @@ -1,7 +1,7 @@ import { Metadata } from "next"; export const metadata: Metadata = { - title: "Dashcode Next Js", + title: "Media Hub | POLRI", description: "Dashcode is a popular dashboard template.", }; const Layout = ({ children }: { children: React.ReactNode }) => { diff --git a/app/[locale]/(protected)/forms/input-file/layout.tsx b/app/[locale]/(protected)/forms/input-file/layout.tsx index 9804c128..5666cfeb 100644 --- a/app/[locale]/(protected)/forms/input-file/layout.tsx +++ b/app/[locale]/(protected)/forms/input-file/layout.tsx @@ -1,7 +1,7 @@ import { Metadata } from "next"; export const metadata: Metadata = { - title: "Dashcode Next Js", + title: "Media Hub | POLRI", description: "Dashcode is a popular dashboard template.", }; const Layout = ({ children }: { children: React.ReactNode }) => { diff --git a/app/[locale]/(protected)/forms/input-group/layout.tsx b/app/[locale]/(protected)/forms/input-group/layout.tsx index 9804c128..5666cfeb 100644 --- a/app/[locale]/(protected)/forms/input-group/layout.tsx +++ b/app/[locale]/(protected)/forms/input-group/layout.tsx @@ -1,7 +1,7 @@ import { Metadata } from "next"; export const metadata: Metadata = { - title: "Dashcode Next Js", + title: "Media Hub | POLRI", description: "Dashcode is a popular dashboard template.", }; const Layout = ({ children }: { children: React.ReactNode }) => { diff --git a/app/[locale]/(protected)/forms/input-layout/layout.tsx b/app/[locale]/(protected)/forms/input-layout/layout.tsx index 9804c128..5666cfeb 100644 --- a/app/[locale]/(protected)/forms/input-layout/layout.tsx +++ b/app/[locale]/(protected)/forms/input-layout/layout.tsx @@ -1,7 +1,7 @@ import { Metadata } from "next"; export const metadata: Metadata = { - title: "Dashcode Next Js", + title: "Media Hub | POLRI", description: "Dashcode is a popular dashboard template.", }; const Layout = ({ children }: { children: React.ReactNode }) => { diff --git a/app/[locale]/(protected)/forms/input-mask/layout.tsx b/app/[locale]/(protected)/forms/input-mask/layout.tsx index 9804c128..5666cfeb 100644 --- a/app/[locale]/(protected)/forms/input-mask/layout.tsx +++ b/app/[locale]/(protected)/forms/input-mask/layout.tsx @@ -1,7 +1,7 @@ import { Metadata } from "next"; export const metadata: Metadata = { - title: "Dashcode Next Js", + title: "Media Hub | POLRI", description: "Dashcode is a popular dashboard template.", }; const Layout = ({ children }: { children: React.ReactNode }) => { diff --git a/app/[locale]/(protected)/forms/input-otp/layout.tsx b/app/[locale]/(protected)/forms/input-otp/layout.tsx index 9804c128..5666cfeb 100644 --- a/app/[locale]/(protected)/forms/input-otp/layout.tsx +++ b/app/[locale]/(protected)/forms/input-otp/layout.tsx @@ -1,7 +1,7 @@ import { Metadata } from "next"; export const metadata: Metadata = { - title: "Dashcode Next Js", + title: "Media Hub | POLRI", description: "Dashcode is a popular dashboard template.", }; const Layout = ({ children }: { children: React.ReactNode }) => { diff --git a/app/[locale]/(protected)/forms/input/layout.tsx b/app/[locale]/(protected)/forms/input/layout.tsx index 9804c128..5666cfeb 100644 --- a/app/[locale]/(protected)/forms/input/layout.tsx +++ b/app/[locale]/(protected)/forms/input/layout.tsx @@ -1,7 +1,7 @@ import { Metadata } from "next"; export const metadata: Metadata = { - title: "Dashcode Next Js", + title: "Media Hub | POLRI", description: "Dashcode is a popular dashboard template.", }; const Layout = ({ children }: { children: React.ReactNode }) => { diff --git a/app/[locale]/(protected)/forms/layout.tsx b/app/[locale]/(protected)/forms/layout.tsx index 9804c128..5666cfeb 100644 --- a/app/[locale]/(protected)/forms/layout.tsx +++ b/app/[locale]/(protected)/forms/layout.tsx @@ -1,7 +1,7 @@ import { Metadata } from "next"; export const metadata: Metadata = { - title: "Dashcode Next Js", + title: "Media Hub | POLRI", description: "Dashcode is a popular dashboard template.", }; const Layout = ({ children }: { children: React.ReactNode }) => { diff --git a/app/[locale]/(protected)/forms/radio/layout.tsx b/app/[locale]/(protected)/forms/radio/layout.tsx index 9804c128..5666cfeb 100644 --- a/app/[locale]/(protected)/forms/radio/layout.tsx +++ b/app/[locale]/(protected)/forms/radio/layout.tsx @@ -1,7 +1,7 @@ import { Metadata } from "next"; export const metadata: Metadata = { - title: "Dashcode Next Js", + title: "Media Hub | POLRI", description: "Dashcode is a popular dashboard template.", }; const Layout = ({ children }: { children: React.ReactNode }) => { diff --git a/app/[locale]/(protected)/forms/select/layout.tsx b/app/[locale]/(protected)/forms/select/layout.tsx index 9804c128..5666cfeb 100644 --- a/app/[locale]/(protected)/forms/select/layout.tsx +++ b/app/[locale]/(protected)/forms/select/layout.tsx @@ -1,7 +1,7 @@ import { Metadata } from "next"; export const metadata: Metadata = { - title: "Dashcode Next Js", + title: "Media Hub | POLRI", description: "Dashcode is a popular dashboard template.", }; const Layout = ({ children }: { children: React.ReactNode }) => { diff --git a/app/[locale]/(protected)/forms/slider/layout.tsx b/app/[locale]/(protected)/forms/slider/layout.tsx index 9804c128..5666cfeb 100644 --- a/app/[locale]/(protected)/forms/slider/layout.tsx +++ b/app/[locale]/(protected)/forms/slider/layout.tsx @@ -1,7 +1,7 @@ import { Metadata } from "next"; export const metadata: Metadata = { - title: "Dashcode Next Js", + title: "Media Hub | POLRI", description: "Dashcode is a popular dashboard template.", }; const Layout = ({ children }: { children: React.ReactNode }) => { diff --git a/app/[locale]/(protected)/forms/switch/layout.tsx b/app/[locale]/(protected)/forms/switch/layout.tsx index 9804c128..5666cfeb 100644 --- a/app/[locale]/(protected)/forms/switch/layout.tsx +++ b/app/[locale]/(protected)/forms/switch/layout.tsx @@ -1,7 +1,7 @@ import { Metadata } from "next"; export const metadata: Metadata = { - title: "Dashcode Next Js", + title: "Media Hub | POLRI", description: "Dashcode is a popular dashboard template.", }; const Layout = ({ children }: { children: React.ReactNode }) => { diff --git a/app/[locale]/(protected)/forms/textarea/layout.tsx b/app/[locale]/(protected)/forms/textarea/layout.tsx index 9804c128..5666cfeb 100644 --- a/app/[locale]/(protected)/forms/textarea/layout.tsx +++ b/app/[locale]/(protected)/forms/textarea/layout.tsx @@ -1,7 +1,7 @@ import { Metadata } from "next"; export const metadata: Metadata = { - title: "Dashcode Next Js", + title: "Media Hub | POLRI", description: "Dashcode is a popular dashboard template.", }; const Layout = ({ children }: { children: React.ReactNode }) => { diff --git a/app/[locale]/(protected)/icons/layout.tsx b/app/[locale]/(protected)/icons/layout.tsx index 9804c128..5666cfeb 100644 --- a/app/[locale]/(protected)/icons/layout.tsx +++ b/app/[locale]/(protected)/icons/layout.tsx @@ -1,7 +1,7 @@ import { Metadata } from "next"; export const metadata: Metadata = { - title: "Dashcode Next Js", + title: "Media Hub | POLRI", description: "Dashcode is a popular dashboard template.", }; const Layout = ({ children }: { children: React.ReactNode }) => { diff --git a/app/[locale]/(protected)/layout.tsx b/app/[locale]/(protected)/layout.tsx index 32ba9850..7b614c86 100644 --- a/app/[locale]/(protected)/layout.tsx +++ b/app/[locale]/(protected)/layout.tsx @@ -4,14 +4,10 @@ import DashCodeSidebar from "@/components/partials/sidebar"; import DashCodeFooter from "@/components/partials/footer"; import ThemeCustomize from "@/components/partials/customizer"; import DashCodeHeader from "@/components/partials/header"; -import { auth } from "@/lib/auth"; + import { redirect } from "@/components/navigation"; const layout = async ({ children }: { children: React.ReactNode }) => { - const session = await auth(); - - if (!session) { - redirect("/"); - } + return ( diff --git a/app/[locale]/(protected)/maps/layout.tsx b/app/[locale]/(protected)/maps/layout.tsx index 9804c128..5666cfeb 100644 --- a/app/[locale]/(protected)/maps/layout.tsx +++ b/app/[locale]/(protected)/maps/layout.tsx @@ -1,7 +1,7 @@ import { Metadata } from "next"; export const metadata: Metadata = { - title: "Dashcode Next Js", + title: "Media Hub | POLRI", description: "Dashcode is a popular dashboard template.", }; const Layout = ({ children }: { children: React.ReactNode }) => { diff --git a/app/[locale]/(protected)/maps/maps-vector/layer-links.tsx b/app/[locale]/(protected)/maps/maps-vector/layer-links.tsx index f9800d30..f722b278 100644 --- a/app/[locale]/(protected)/maps/maps-vector/layer-links.tsx +++ b/app/[locale]/(protected)/maps/maps-vector/layer-links.tsx @@ -8,7 +8,7 @@ const LayerLinks = ({ height = 350 }: { height?: number }) => { const onClick = (event: React.MouseEvent) => { const name = event.currentTarget.getAttribute("name"); if (name) { - window.open(`https://www.google.com/search?q=${name}%20nz`); + // window.open(`https://www.google.com/search?q=${name}%20nz`); } }; diff --git a/app/[locale]/(protected)/table/react-table/layout.tsx b/app/[locale]/(protected)/table/react-table/layout.tsx index 9804c128..5666cfeb 100644 --- a/app/[locale]/(protected)/table/react-table/layout.tsx +++ b/app/[locale]/(protected)/table/react-table/layout.tsx @@ -1,7 +1,7 @@ import { Metadata } from "next"; export const metadata: Metadata = { - title: "Dashcode Next Js", + title: "Media Hub | POLRI", description: "Dashcode is a popular dashboard template.", }; const Layout = ({ children }: { children: React.ReactNode }) => { diff --git a/app/[locale]/(protected)/utility/blank-page/layout.tsx b/app/[locale]/(protected)/utility/blank-page/layout.tsx index 9804c128..5666cfeb 100644 --- a/app/[locale]/(protected)/utility/blank-page/layout.tsx +++ b/app/[locale]/(protected)/utility/blank-page/layout.tsx @@ -1,7 +1,7 @@ import { Metadata } from "next"; export const metadata: Metadata = { - title: "Dashcode Next Js", + title: "Media Hub | POLRI", description: "Dashcode is a popular dashboard template.", }; const Layout = ({ children }: { children: React.ReactNode }) => { diff --git a/app/[locale]/(protected)/utility/blog/layout.tsx b/app/[locale]/(protected)/utility/blog/layout.tsx index 9804c128..5666cfeb 100644 --- a/app/[locale]/(protected)/utility/blog/layout.tsx +++ b/app/[locale]/(protected)/utility/blog/layout.tsx @@ -1,7 +1,7 @@ import { Metadata } from "next"; export const metadata: Metadata = { - title: "Dashcode Next Js", + title: "Media Hub | POLRI", description: "Dashcode is a popular dashboard template.", }; const Layout = ({ children }: { children: React.ReactNode }) => { diff --git a/app/[locale]/(protected)/utility/faq/layout.tsx b/app/[locale]/(protected)/utility/faq/layout.tsx index 9804c128..5666cfeb 100644 --- a/app/[locale]/(protected)/utility/faq/layout.tsx +++ b/app/[locale]/(protected)/utility/faq/layout.tsx @@ -1,7 +1,7 @@ import { Metadata } from "next"; export const metadata: Metadata = { - title: "Dashcode Next Js", + title: "Media Hub | POLRI", description: "Dashcode is a popular dashboard template.", }; const Layout = ({ children }: { children: React.ReactNode }) => { diff --git a/app/[locale]/(protected)/utility/invoice/add/layout.tsx b/app/[locale]/(protected)/utility/invoice/add/layout.tsx index ea4b107c..bff0fb8a 100644 --- a/app/[locale]/(protected)/utility/invoice/add/layout.tsx +++ b/app/[locale]/(protected)/utility/invoice/add/layout.tsx @@ -1,5 +1,5 @@ export const metadata = { - title: "Dashcode Next Js", + title: "Media Hub | POLRI", description: "Dashcode is a popular dashboard template.", }; diff --git a/app/[locale]/(protected)/utility/invoice/edit/layout.tsx b/app/[locale]/(protected)/utility/invoice/edit/layout.tsx index ea4b107c..bff0fb8a 100644 --- a/app/[locale]/(protected)/utility/invoice/edit/layout.tsx +++ b/app/[locale]/(protected)/utility/invoice/edit/layout.tsx @@ -1,5 +1,5 @@ export const metadata = { - title: "Dashcode Next Js", + title: "Media Hub | POLRI", description: "Dashcode is a popular dashboard template.", }; diff --git a/app/[locale]/(protected)/utility/invoice/layout.tsx b/app/[locale]/(protected)/utility/invoice/layout.tsx index 9804c128..5666cfeb 100644 --- a/app/[locale]/(protected)/utility/invoice/layout.tsx +++ b/app/[locale]/(protected)/utility/invoice/layout.tsx @@ -1,7 +1,7 @@ import { Metadata } from "next"; export const metadata: Metadata = { - title: "Dashcode Next Js", + title: "Media Hub | POLRI", description: "Dashcode is a popular dashboard template.", }; const Layout = ({ children }: { children: React.ReactNode }) => { diff --git a/app/[locale]/(protected)/utility/pricing/layout.tsx b/app/[locale]/(protected)/utility/pricing/layout.tsx index 9804c128..5666cfeb 100644 --- a/app/[locale]/(protected)/utility/pricing/layout.tsx +++ b/app/[locale]/(protected)/utility/pricing/layout.tsx @@ -1,7 +1,7 @@ import { Metadata } from "next"; export const metadata: Metadata = { - title: "Dashcode Next Js", + title: "Media Hub | POLRI", description: "Dashcode is a popular dashboard template.", }; const Layout = ({ children }: { children: React.ReactNode }) => { diff --git a/app/[locale]/(protected)/utility/profile/layout.tsx b/app/[locale]/(protected)/utility/profile/layout.tsx index 9804c128..5666cfeb 100644 --- a/app/[locale]/(protected)/utility/profile/layout.tsx +++ b/app/[locale]/(protected)/utility/profile/layout.tsx @@ -1,7 +1,7 @@ import { Metadata } from "next"; export const metadata: Metadata = { - title: "Dashcode Next Js", + title: "Media Hub | POLRI", description: "Dashcode is a popular dashboard template.", }; const Layout = ({ children }: { children: React.ReactNode }) => { diff --git a/app/[locale]/(protected)/utility/settings/layout.tsx b/app/[locale]/(protected)/utility/settings/layout.tsx index 9804c128..5666cfeb 100644 --- a/app/[locale]/(protected)/utility/settings/layout.tsx +++ b/app/[locale]/(protected)/utility/settings/layout.tsx @@ -1,7 +1,7 @@ import { Metadata } from "next"; export const metadata: Metadata = { - title: "Dashcode Next Js", + title: "Media Hub | POLRI", description: "Dashcode is a popular dashboard template.", }; const Layout = ({ children }: { children: React.ReactNode }) => { diff --git a/app/[locale]/auth/404/layout.tsx b/app/[locale]/auth/404/layout.tsx index 9804c128..5666cfeb 100644 --- a/app/[locale]/auth/404/layout.tsx +++ b/app/[locale]/auth/404/layout.tsx @@ -1,7 +1,7 @@ import { Metadata } from "next"; export const metadata: Metadata = { - title: "Dashcode Next Js", + title: "Media Hub | POLRI", description: "Dashcode is a popular dashboard template.", }; const Layout = ({ children }: { children: React.ReactNode }) => { diff --git a/app/[locale]/auth/coming-soon/layout.tsx b/app/[locale]/auth/coming-soon/layout.tsx index 9804c128..5666cfeb 100644 --- a/app/[locale]/auth/coming-soon/layout.tsx +++ b/app/[locale]/auth/coming-soon/layout.tsx @@ -1,7 +1,7 @@ import { Metadata } from "next"; export const metadata: Metadata = { - title: "Dashcode Next Js", + title: "Media Hub | POLRI", description: "Dashcode is a popular dashboard template.", }; const Layout = ({ children }: { children: React.ReactNode }) => { diff --git a/app/[locale]/auth/forgot-password/layout.tsx b/app/[locale]/auth/forgot-password/layout.tsx index 9804c128..5666cfeb 100644 --- a/app/[locale]/auth/forgot-password/layout.tsx +++ b/app/[locale]/auth/forgot-password/layout.tsx @@ -1,7 +1,7 @@ import { Metadata } from "next"; export const metadata: Metadata = { - title: "Dashcode Next Js", + title: "Media Hub | POLRI", description: "Dashcode is a popular dashboard template.", }; const Layout = ({ children }: { children: React.ReactNode }) => { diff --git a/app/[locale]/auth/forgot-password2/layout.tsx b/app/[locale]/auth/forgot-password2/layout.tsx index 9804c128..5666cfeb 100644 --- a/app/[locale]/auth/forgot-password2/layout.tsx +++ b/app/[locale]/auth/forgot-password2/layout.tsx @@ -1,7 +1,7 @@ import { Metadata } from "next"; export const metadata: Metadata = { - title: "Dashcode Next Js", + title: "Media Hub | POLRI", description: "Dashcode is a popular dashboard template.", }; const Layout = ({ children }: { children: React.ReactNode }) => { diff --git a/app/[locale]/auth/forgot-password3/layout.tsx b/app/[locale]/auth/forgot-password3/layout.tsx index 9804c128..5666cfeb 100644 --- a/app/[locale]/auth/forgot-password3/layout.tsx +++ b/app/[locale]/auth/forgot-password3/layout.tsx @@ -1,7 +1,7 @@ import { Metadata } from "next"; export const metadata: Metadata = { - title: "Dashcode Next Js", + title: "Media Hub | POLRI", description: "Dashcode is a popular dashboard template.", }; const Layout = ({ children }: { children: React.ReactNode }) => { diff --git a/app/[locale]/auth/lock-screen/layout.tsx b/app/[locale]/auth/lock-screen/layout.tsx index 9804c128..5666cfeb 100644 --- a/app/[locale]/auth/lock-screen/layout.tsx +++ b/app/[locale]/auth/lock-screen/layout.tsx @@ -1,7 +1,7 @@ import { Metadata } from "next"; export const metadata: Metadata = { - title: "Dashcode Next Js", + title: "Media Hub | POLRI", description: "Dashcode is a popular dashboard template.", }; const Layout = ({ children }: { children: React.ReactNode }) => { diff --git a/app/[locale]/auth/lock-screen2/layout.tsx b/app/[locale]/auth/lock-screen2/layout.tsx index 9804c128..5666cfeb 100644 --- a/app/[locale]/auth/lock-screen2/layout.tsx +++ b/app/[locale]/auth/lock-screen2/layout.tsx @@ -1,7 +1,7 @@ import { Metadata } from "next"; export const metadata: Metadata = { - title: "Dashcode Next Js", + title: "Media Hub | POLRI", description: "Dashcode is a popular dashboard template.", }; const Layout = ({ children }: { children: React.ReactNode }) => { diff --git a/app/[locale]/auth/lock-screen3/layout.tsx b/app/[locale]/auth/lock-screen3/layout.tsx index 9804c128..5666cfeb 100644 --- a/app/[locale]/auth/lock-screen3/layout.tsx +++ b/app/[locale]/auth/lock-screen3/layout.tsx @@ -1,7 +1,7 @@ import { Metadata } from "next"; export const metadata: Metadata = { - title: "Dashcode Next Js", + title: "Media Hub | POLRI", description: "Dashcode is a popular dashboard template.", }; const Layout = ({ children }: { children: React.ReactNode }) => { diff --git a/app/[locale]/auth/login/layout.tsx b/app/[locale]/auth/login/layout.tsx index 9804c128..5666cfeb 100644 --- a/app/[locale]/auth/login/layout.tsx +++ b/app/[locale]/auth/login/layout.tsx @@ -1,7 +1,7 @@ import { Metadata } from "next"; export const metadata: Metadata = { - title: "Dashcode Next Js", + title: "Media Hub | POLRI", description: "Dashcode is a popular dashboard template.", }; const Layout = ({ children }: { children: React.ReactNode }) => { diff --git a/app/[locale]/auth/login2/layout.tsx b/app/[locale]/auth/login2/layout.tsx index 9804c128..5666cfeb 100644 --- a/app/[locale]/auth/login2/layout.tsx +++ b/app/[locale]/auth/login2/layout.tsx @@ -1,7 +1,7 @@ import { Metadata } from "next"; export const metadata: Metadata = { - title: "Dashcode Next Js", + title: "Media Hub | POLRI", description: "Dashcode is a popular dashboard template.", }; const Layout = ({ children }: { children: React.ReactNode }) => { diff --git a/app/[locale]/auth/login3/layout.tsx b/app/[locale]/auth/login3/layout.tsx index 9804c128..5666cfeb 100644 --- a/app/[locale]/auth/login3/layout.tsx +++ b/app/[locale]/auth/login3/layout.tsx @@ -1,7 +1,7 @@ import { Metadata } from "next"; export const metadata: Metadata = { - title: "Dashcode Next Js", + title: "Media Hub | POLRI", description: "Dashcode is a popular dashboard template.", }; const Layout = ({ children }: { children: React.ReactNode }) => { diff --git a/app/[locale]/auth/register/layout.tsx b/app/[locale]/auth/register/layout.tsx index 9804c128..5666cfeb 100644 --- a/app/[locale]/auth/register/layout.tsx +++ b/app/[locale]/auth/register/layout.tsx @@ -1,7 +1,7 @@ import { Metadata } from "next"; export const metadata: Metadata = { - title: "Dashcode Next Js", + title: "Media Hub | POLRI", description: "Dashcode is a popular dashboard template.", }; const Layout = ({ children }: { children: React.ReactNode }) => { diff --git a/app/[locale]/auth/register2/layout.tsx b/app/[locale]/auth/register2/layout.tsx index 9804c128..5666cfeb 100644 --- a/app/[locale]/auth/register2/layout.tsx +++ b/app/[locale]/auth/register2/layout.tsx @@ -1,7 +1,7 @@ import { Metadata } from "next"; export const metadata: Metadata = { - title: "Dashcode Next Js", + title: "Media Hub | POLRI", description: "Dashcode is a popular dashboard template.", }; const Layout = ({ children }: { children: React.ReactNode }) => { diff --git a/app/[locale]/auth/register3/layout.tsx b/app/[locale]/auth/register3/layout.tsx index 9804c128..5666cfeb 100644 --- a/app/[locale]/auth/register3/layout.tsx +++ b/app/[locale]/auth/register3/layout.tsx @@ -1,7 +1,7 @@ import { Metadata } from "next"; export const metadata: Metadata = { - title: "Dashcode Next Js", + title: "Media Hub | POLRI", description: "Dashcode is a popular dashboard template.", }; const Layout = ({ children }: { children: React.ReactNode }) => { diff --git a/app/[locale]/auth/under-construction/layout.tsx b/app/[locale]/auth/under-construction/layout.tsx index 9804c128..5666cfeb 100644 --- a/app/[locale]/auth/under-construction/layout.tsx +++ b/app/[locale]/auth/under-construction/layout.tsx @@ -1,7 +1,7 @@ import { Metadata } from "next"; export const metadata: Metadata = { - title: "Dashcode Next Js", + title: "Media Hub | POLRI", description: "Dashcode is a popular dashboard template.", }; const Layout = ({ children }: { children: React.ReactNode }) => { diff --git a/app/[locale]/auth/under-maintenance/layout.tsx b/app/[locale]/auth/under-maintenance/layout.tsx index 9804c128..5666cfeb 100644 --- a/app/[locale]/auth/under-maintenance/layout.tsx +++ b/app/[locale]/auth/under-maintenance/layout.tsx @@ -1,7 +1,7 @@ import { Metadata } from "next"; export const metadata: Metadata = { - title: "Dashcode Next Js", + title: "Media Hub | POLRI", description: "Dashcode is a popular dashboard template.", }; const Layout = ({ children }: { children: React.ReactNode }) => { diff --git a/app/api/auth/[...nextauth]/route.ts b/app/api/auth/[...nextauth]/route.ts deleted file mode 100644 index 73228a09..00000000 --- a/app/api/auth/[...nextauth]/route.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { handlers } from "@/lib/auth"; -export const { GET, POST } = handlers; diff --git a/components/partials/auth/login-form.tsx b/components/partials/auth/login-form.tsx index cb344fa9..09aba4f0 100644 --- a/components/partials/auth/login-form.tsx +++ b/components/partials/auth/login-form.tsx @@ -168,7 +168,7 @@ const LoginForm = () => { }); } } else { - window.location.href = "/"; + // window.location.href = "/"; Cookies.set("status", "login", { expires: 1, }); diff --git a/components/partials/footer/index.tsx b/components/partials/footer/index.tsx index c55c1e85..bcc08b59 100644 --- a/components/partials/footer/index.tsx +++ b/components/partials/footer/index.tsx @@ -5,16 +5,8 @@ import FooterContent from './footer-content' import { Link } from "@/components/navigation" import Image from 'next/image' import { Icon } from "@/components/ui/icon"; -import { auth } from '@/lib/auth' const DashCodeFooter = () => { - - const [session, setSession] = React.useState(); - - const initSession = async () => { - const ses = await auth(); - setSession(ses); - } return ( @@ -49,13 +41,11 @@ const DashCodeFooter = () => { >
{session?.user?.name?.charAt(0)
diff --git a/components/partials/header/profile-info.tsx b/components/partials/header/profile-info.tsx index 66e48c8f..b08c84bc 100644 --- a/components/partials/header/profile-info.tsx +++ b/components/partials/header/profile-info.tsx @@ -12,19 +12,11 @@ import { DropdownMenuTrigger, } from "@/components/ui/dropdown-menu"; import { Icon } from "@/components/ui/icon"; -import { signOut, auth } from "@/lib/auth"; import Image from "next/image"; import { Link } from "@/i18n/routing"; import React from "react"; const ProfileInfo = () => { - - const [session, setSession] = React.useState(); - - const initSession = async () => { - const ses = await auth(); - setSession(ses); - } return (
@@ -32,15 +24,15 @@ const ProfileInfo = () => {
{session?.user?.name?.charAt(0)
- {session?.user?.name} + UserName
@@ -50,8 +42,8 @@ const ProfileInfo = () => { {session?.user?.name?.charAt(0) {
- {session?.user?.name} + Name
- {session?.user?.email} + Email
diff --git a/components/partials/sidebar/common/team-switcher.tsx b/components/partials/sidebar/common/team-switcher.tsx index b4b86e0c..52d11613 100644 --- a/components/partials/sidebar/common/team-switcher.tsx +++ b/components/partials/sidebar/common/team-switcher.tsx @@ -1,7 +1,6 @@ "use client" import * as React from "react" -import { useSession } from "next-auth/react"; import { ChevronsUpDown, Check, CirclePlus } from 'lucide-react'; import { cn } from "@/lib/utils" @@ -88,7 +87,7 @@ export default function TeamSwitcher({ className }: TeamSwitcherProps) { const [config] = useConfig(); const [hoverConfig] = useMenuHoverConfig(); const { hovered } = hoverConfig; - const { data: session } = useSession(); + const [data, setData] = React.useState(); const [open, setOpen] = React.useState(false) const [showNewTeamDialog, setShowNewTeamDialog] = React.useState(false) const [selectedTeam, setSelectedTeam] = React.useState( @@ -128,12 +127,12 @@ export default function TeamSwitcher({ className }: TeamSwitcherProps) { - {session?.user?.name?.charAt(0)} + Username :