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
|
||||
|
||||
@@ -4,8 +4,6 @@
|
||||
import Grid from '@mui/material/Grid2'
|
||||
|
||||
// Component Imports
|
||||
import DistributedBarChartOrder from '@views/dashboards/crm/DistributedBarChartOrder'
|
||||
import EarningReportsWithTabs from '@views/dashboards/crm/EarningReportsWithTabs'
|
||||
|
||||
// Server Action Imports
|
||||
import Loading from '../../../../../../components/layout/shared/Loading'
|
||||
|
||||
Reference in New Issue
Block a user