move selfservice tables to medreport schema
add base medusa store frontend
This commit is contained in:
21
app/store/[countryCode]/(main)/account/layout.tsx
Normal file
21
app/store/[countryCode]/(main)/account/layout.tsx
Normal file
@@ -0,0 +1,21 @@
|
||||
import { Toaster } from '@medusajs/ui';
|
||||
|
||||
import { retrieveCustomer } from '~/medusa/lib/data';
|
||||
import { AccountLayout } from '~/medusa/modules/account/templates';
|
||||
|
||||
export default async function AccountPageLayout({
|
||||
dashboard,
|
||||
login,
|
||||
}: {
|
||||
dashboard?: React.ReactNode;
|
||||
login?: React.ReactNode;
|
||||
}) {
|
||||
const customer = await retrieveCustomer().catch(() => null);
|
||||
|
||||
return (
|
||||
<AccountLayout customer={customer}>
|
||||
{customer ? dashboard : login}
|
||||
<Toaster />
|
||||
</AccountLayout>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user