prettier fix
This commit is contained in:
@@ -1,30 +1,32 @@
|
||||
import { retrieveCart } from "@lib/data/cart"
|
||||
import { retrieveCustomer } from "@lib/data/customer"
|
||||
import PaymentWrapper from "@modules/checkout/components/payment-wrapper"
|
||||
import CheckoutForm from "@modules/checkout/templates/checkout-form"
|
||||
import CheckoutSummary from "@modules/checkout/templates/checkout-summary"
|
||||
import { Metadata } from "next"
|
||||
import { notFound } from "next/navigation"
|
||||
import { Metadata } from 'next';
|
||||
|
||||
import { notFound } from 'next/navigation';
|
||||
|
||||
import { retrieveCart } from '@lib/data/cart';
|
||||
import { retrieveCustomer } from '@lib/data/customer';
|
||||
import PaymentWrapper from '@modules/checkout/components/payment-wrapper';
|
||||
import CheckoutForm from '@modules/checkout/templates/checkout-form';
|
||||
import CheckoutSummary from '@modules/checkout/templates/checkout-summary';
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: "Checkout",
|
||||
}
|
||||
title: 'Checkout',
|
||||
};
|
||||
|
||||
export default async function Checkout() {
|
||||
const cart = await retrieveCart()
|
||||
const cart = await retrieveCart();
|
||||
|
||||
if (!cart) {
|
||||
return notFound()
|
||||
return notFound();
|
||||
}
|
||||
|
||||
const customer = await retrieveCustomer()
|
||||
const customer = await retrieveCustomer();
|
||||
|
||||
return (
|
||||
<div className="grid grid-cols-1 small:grid-cols-[1fr_416px] content-container gap-x-40 py-12">
|
||||
<div className="small:grid-cols-[1fr_416px] content-container grid grid-cols-1 gap-x-40 py-12">
|
||||
<PaymentWrapper cart={cart}>
|
||||
<CheckoutForm cart={cart} customer={customer} />
|
||||
</PaymentWrapper>
|
||||
<CheckoutSummary cart={cart} />
|
||||
</div>
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import { Metadata } from 'next';
|
||||
|
||||
import { StoreCartShippingOption } from '@medusajs/types';
|
||||
|
||||
import { listCartOptions, retrieveCart } from '@lib/data/cart';
|
||||
import { retrieveCustomer } from '@lib/data/customer';
|
||||
import { getBaseURL } from '@lib/util/env';
|
||||
import { StoreCartShippingOption } from '@medusajs/types';
|
||||
|
||||
import CartMismatchBanner from '~/medusa/modules/layout/components/cart-mismatch-banner';
|
||||
import Footer from '~/medusa/modules/layout/templates/footer';
|
||||
import Nav from '~/medusa/modules/layout/templates/nav';
|
||||
|
||||
Reference in New Issue
Block a user