File tree Expand file tree Collapse file tree 3 files changed +2
-39
lines changed
Expand file tree Collapse file tree 3 files changed +2
-39
lines changed Original file line number Diff line number Diff line change 11import { redirect } from 'next/navigation'
22
3- import type { DynamicLayoutProps } from '~/types/nextjs'
43import { getSession } from '~/server/session'
54import { VersionCheckWrapper } from '../_components/version-check-wrapper'
65
7- export default async function AuthedLayout ( { children } : DynamicLayoutProps ) {
6+ export default async function AuthedLayout ( { children } : LayoutProps < '/' > ) {
87 // DO NOT SKIP AUTHENTICATION CHECKS IN YOUR PROCEDURES.
98 // It is NOT secure. You can access a page data bypassing a layout call. It’s not trivial but it can be done.
109 // Always put your auth call as close to the actual data call as possible, ideally right before access.
Original file line number Diff line number Diff line change 11import { GovtBanner } from '@opengovsg/oui/govt-banner'
22
3- import type { DynamicLayoutProps } from '~/types/nextjs'
43import { VersionCheckWrapper } from '../_components/version-check-wrapper'
54
6- export default function PublicLayout ( { children } : DynamicLayoutProps ) {
5+ export default function PublicLayout ( { children } : LayoutProps < '/' > ) {
76 return (
87 < main className = "flex min-h-dvh flex-col" >
98 < GovtBanner />
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments