update pay function
This commit is contained in:
11
boilerplate-chakra-pro-main/app/dashboard/signin/page.tsx
Normal file
11
boilerplate-chakra-pro-main/app/dashboard/signin/page.tsx
Normal file
@@ -0,0 +1,11 @@
|
||||
import { getDefaultSignInView } from '@/utils/auth-helpers/settings';
|
||||
import { cookies } from 'next/headers';
|
||||
import { redirect } from 'next/navigation';
|
||||
|
||||
export default function SignIn() {
|
||||
const preferredSignInView =
|
||||
cookies().get('preferredSignInView')?.value || null;
|
||||
const defaultView = getDefaultSignInView(preferredSignInView);
|
||||
|
||||
return redirect(`/dashboard/signin/${defaultView}`);
|
||||
}
|
||||
Reference in New Issue
Block a user