mirror of
https://github.com/vercel/commerce.git
synced 2025-07-25 11:11:24 +00:00
warnings fixed
This commit is contained in:
@@ -2,10 +2,10 @@ import { loginCustomer } from 'lib/shopify';
|
||||
import { revalidatePath } from 'next/cache';
|
||||
import { cookies } from 'next/headers';
|
||||
import { redirect } from 'next/navigation';
|
||||
import AuthLayout from '../component/AuthLayout';
|
||||
import FormButton from '../component/FormButton';
|
||||
import FormFooter from '../component/FormFooter';
|
||||
import FormHeader from '../component/FormHeader';
|
||||
import AuthLayout from '../component/auth-layout';
|
||||
import FormButton from '../component/form-button';
|
||||
import FormFooter from '../component/form-footer';
|
||||
import FormHeader from '../component/form-header';
|
||||
|
||||
let emailError: string | null = null;
|
||||
let passwordError: string | null = null;
|
||||
|
@@ -1,6 +1,6 @@
|
||||
import { getCustomer } from 'lib/shopify';
|
||||
import { cookies } from 'next/headers';
|
||||
import SignOutSection from './component/SignOutSection';
|
||||
import SignOutSection from './component/sign-out-section';
|
||||
|
||||
async function AccountPage({ searchParams }: { searchParams: { [key: string]: string } }) {
|
||||
const token = cookies().get('customerAccessToken')?.value as string;
|
||||
|
@@ -1,9 +1,9 @@
|
||||
import { recoverCustomersPassword } from 'lib/shopify';
|
||||
import { revalidatePath } from 'next/cache';
|
||||
import AuthLayout from '../component/AuthLayout';
|
||||
import FormButton from '../component/FormButton';
|
||||
import FormFooter from '../component/FormFooter';
|
||||
import FormHeader from '../component/FormHeader';
|
||||
import AuthLayout from '../component/auth-layout';
|
||||
import FormButton from '../component/form-button';
|
||||
import FormFooter from '../component/form-footer';
|
||||
import FormHeader from '../component/form-header';
|
||||
|
||||
let emailError: string | null = null;
|
||||
let isSubmited: boolean = false;
|
||||
|
@@ -2,10 +2,10 @@ import { createCustomer, loginCustomer } from 'lib/shopify';
|
||||
import { revalidatePath } from 'next/cache';
|
||||
import { cookies } from 'next/headers';
|
||||
import { redirect } from 'next/navigation';
|
||||
import AuthLayout from '../component/AuthLayout';
|
||||
import FormButton from '../component/FormButton';
|
||||
import FormFooter from '../component/FormFooter';
|
||||
import FormHeader from '../component/FormHeader';
|
||||
import AuthLayout from '../component/auth-layout';
|
||||
import FormButton from '../component/form-button';
|
||||
import FormFooter from '../component/form-footer';
|
||||
import FormHeader from '../component/form-header';
|
||||
|
||||
let emailError: string | null = null;
|
||||
let passwordError: string | null = null;
|
||||
|
@@ -2,9 +2,9 @@ import { resetCustomersPassword } from 'lib/shopify';
|
||||
import { revalidatePath } from 'next/cache';
|
||||
import { cookies } from 'next/headers';
|
||||
import { redirect } from 'next/navigation';
|
||||
import AuthLayout from '../../../component/AuthLayout';
|
||||
import FormButton from '../../../component/FormButton';
|
||||
import FormHeader from '../../../component/FormHeader';
|
||||
import AuthLayout from '../../../component/auth-layout';
|
||||
import FormButton from '../../../component/form-button';
|
||||
import FormHeader from '../../../component/form-header';
|
||||
|
||||
let errorMessage: string | null = null;
|
||||
let passwordError: string | null = null;
|
||||
|
Reference in New Issue
Block a user