50c74b9007
Build & Push / Pipeline Tests (push) Failing after 1m34s
Build & Push / Build & Push Docker Image (push) Has been skipped
Test / Type Check (all packages) (push) Successful in 56s
Test / API Unit Tests (push) Successful in 1m8s
Test / Homepage Unit Tests (push) Successful in 47s
Test / Carplace Unit Tests (push) Successful in 43s
Test / Admin Unit Tests (push) Successful in 46s
Test / Dashboard Unit Tests (push) Failing after 43s
Test / API Integration Tests (push) Successful in 1m8s
21 lines
589 B
TypeScript
21 lines
589 B
TypeScript
import { SignInForm } from '@/components/auth/SignInForm'
|
|
import { isLocale, isMode, type Locale } from '@/lib/localization/config'
|
|
import { notFound } from 'next/navigation'
|
|
import { Suspense } from 'react'
|
|
|
|
export default async function AdminSignInPage({
|
|
params,
|
|
}: {
|
|
params: Promise<{ locale: string; mode: string }>
|
|
}) {
|
|
const { locale: localeValue, mode } = await params
|
|
if (!isLocale(localeValue)) notFound()
|
|
if (!isMode(mode)) notFound()
|
|
|
|
return (
|
|
<Suspense fallback={null}>
|
|
<SignInForm locale={localeValue as Locale} authMode="admin" />
|
|
</Suspense>
|
|
)
|
|
}
|