mirror of
https://github.com/vercel/commerce.git
synced 2025-07-23 04:36:49 +00:00
address order confirmation change requests
This commit is contained in:
@@ -1,17 +1,15 @@
|
||||
import { InformationCircleIcon } from '@heroicons/react/24/outline';
|
||||
import ActivateWarranty from 'components/orders/activate-warranty';
|
||||
import MobileOrderActions from 'components/orders/mobile-order-actions';
|
||||
import OrderConfirmation from 'components/orders/order-confirmation';
|
||||
import OrdersHeader from 'components/orders/orders-header';
|
||||
import Price from 'components/price';
|
||||
import { Button } from 'components/ui';
|
||||
import { getCustomerOrders } from 'lib/shopify';
|
||||
import { toPrintDate } from 'lib/utils';
|
||||
import dynamic from 'next/dynamic';
|
||||
import Image from 'next/image';
|
||||
import Link from 'next/link';
|
||||
|
||||
const OrderConfirmation = dynamic(() => import('components/orders/order-confirmation'));
|
||||
|
||||
export default async function AccountPage() {
|
||||
const orders = await getCustomerOrders();
|
||||
|
||||
@@ -65,7 +63,7 @@ export default async function AccountPage() {
|
||||
</Button>
|
||||
</Link>
|
||||
<ActivateWarranty order={order} />
|
||||
{!order.orderConfirmation && <OrderConfirmation order={order} />}
|
||||
<OrderConfirmation order={order} />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
Reference in New Issue
Block a user