fix: guest route
This commit is contained in:
@@ -1,16 +1,13 @@
|
||||
// Type Imports
|
||||
import type { ChildrenType } from '@core/types'
|
||||
import type { Locale } from '@configs/i18n'
|
||||
|
||||
// HOC Imports
|
||||
import GuestOnlyRoute from '@/hocs/GuestOnlyRoute'
|
||||
|
||||
const Layout = async (props: ChildrenType & { params: Promise<{ lang: Locale }> }) => {
|
||||
const params = await props.params
|
||||
|
||||
const Layout = async (props: ChildrenType) => {
|
||||
const { children } = props
|
||||
|
||||
return <GuestOnlyRoute lang={params.lang}>{children}</GuestOnlyRoute>
|
||||
return <GuestOnlyRoute>{children}</GuestOnlyRoute>
|
||||
}
|
||||
|
||||
export default Layout
|
||||
|
||||
Reference in New Issue
Block a user