Add owner portal, i18n, contact API, and region/footer assets
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
'use client';
|
||||
import { Assistant } from '@/components/portal/pages';
|
||||
import { usePortal } from '@/components/portal/portal-context';
|
||||
|
||||
export default function AssistantPage() {
|
||||
const { go, toast } = usePortal();
|
||||
return <Assistant go={go} toast={toast} />;
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
'use client';
|
||||
import { Construction } from '@/components/portal/pages';
|
||||
import { usePortal } from '@/components/portal/portal-context';
|
||||
|
||||
export default function ConstructionPage() {
|
||||
const { go, toast } = usePortal();
|
||||
return <Construction go={go} toast={toast} />;
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
'use client';
|
||||
import { Dashboard } from '@/components/portal/pages';
|
||||
import { usePortal } from '@/components/portal/portal-context';
|
||||
|
||||
export default function DashboardPage() {
|
||||
const { go, toast } = usePortal();
|
||||
return <Dashboard go={go} toast={toast} />;
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
'use client';
|
||||
import { Documents } from '@/components/portal/pages';
|
||||
import { usePortal } from '@/components/portal/portal-context';
|
||||
|
||||
export default function DocumentsPage() {
|
||||
const { go, toast } = usePortal();
|
||||
return <Documents go={go} toast={toast} />;
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
'use client';
|
||||
import { Journey } from '@/components/portal/pages';
|
||||
import { usePortal } from '@/components/portal/portal-context';
|
||||
|
||||
export default function JourneyPage() {
|
||||
const { go, toast } = usePortal();
|
||||
return <Journey go={go} toast={toast} />;
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
'use client';
|
||||
import { usePathname } from 'next/navigation';
|
||||
import { usePortalNav, routeKeyFromPath } from '@/components/portal/nav';
|
||||
import { useToast } from '@/components/portal/ui';
|
||||
import { Shell } from '@/components/portal/pages';
|
||||
import { PortalProvider } from '@/components/portal/portal-context';
|
||||
|
||||
export default function PortalAppLayout({
|
||||
children,
|
||||
}: {
|
||||
children: React.ReactNode;
|
||||
}) {
|
||||
const go = usePortalNav();
|
||||
const pathname = usePathname();
|
||||
const route = routeKeyFromPath(pathname);
|
||||
const [toastNode, toast] = useToast();
|
||||
|
||||
return (
|
||||
<PortalProvider go={go} toast={toast}>
|
||||
<Shell route={route} go={go}>
|
||||
{children}
|
||||
</Shell>
|
||||
{toastNode}
|
||||
</PortalProvider>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
'use client';
|
||||
import { MyJourney } from '@/components/portal/pages';
|
||||
import { usePortal } from '@/components/portal/portal-context';
|
||||
|
||||
export default function MyJourneyPage() {
|
||||
const { go, toast } = usePortal();
|
||||
return <MyJourney go={go} toast={toast} />;
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
'use client';
|
||||
import { Notices } from '@/components/portal/pages';
|
||||
import { usePortal } from '@/components/portal/portal-context';
|
||||
|
||||
export default function NoticesPage() {
|
||||
const { go, toast } = usePortal();
|
||||
return <Notices go={go} toast={toast} />;
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
'use client';
|
||||
import { Payments } from '@/components/portal/pages';
|
||||
import { usePortal } from '@/components/portal/portal-context';
|
||||
|
||||
export default function PaymentsPage() {
|
||||
const { go, toast } = usePortal();
|
||||
return <Payments go={go} toast={toast} />;
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
'use client';
|
||||
import { MyPlot } from '@/components/portal/pages';
|
||||
import { usePortal } from '@/components/portal/portal-context';
|
||||
|
||||
export default function PlotPage() {
|
||||
const { go, toast } = usePortal();
|
||||
return <MyPlot go={go} toast={toast} />;
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
'use client';
|
||||
import { Profile } from '@/components/portal/pages';
|
||||
import { usePortal } from '@/components/portal/portal-context';
|
||||
|
||||
export default function ProfilePage() {
|
||||
const { go, toast } = usePortal();
|
||||
return <Profile go={go} toast={toast} />;
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
'use client';
|
||||
import { SamplePlans } from '@/components/portal/pages';
|
||||
import { usePortal } from '@/components/portal/portal-context';
|
||||
|
||||
export default function SamplePlansPage() {
|
||||
const { go, toast } = usePortal();
|
||||
return <SamplePlans go={go} toast={toast} />;
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
'use client';
|
||||
import { SectorMaps } from '@/components/portal/pages';
|
||||
import { usePortal } from '@/components/portal/portal-context';
|
||||
|
||||
export default function SectorMapsPage() {
|
||||
const { go, toast } = usePortal();
|
||||
return <SectorMaps go={go} toast={toast} />;
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
'use client';
|
||||
import { Support } from '@/components/portal/pages';
|
||||
import { usePortal } from '@/components/portal/portal-context';
|
||||
|
||||
export default function SupportPage() {
|
||||
const { go, toast } = usePortal();
|
||||
return <Support go={go} toast={toast} />;
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
'use client';
|
||||
import { Transfer } from '@/components/portal/pages';
|
||||
import { usePortal } from '@/components/portal/portal-context';
|
||||
|
||||
export default function TransferPage() {
|
||||
const { go, toast } = usePortal();
|
||||
return <Transfer go={go} toast={toast} />;
|
||||
}
|
||||
Reference in New Issue
Block a user