mirror of
https://github.com/vercel/commerce.git
synced 2025-05-11 20:27:51 +00:00
dynamically import warranty and order confirmation in orders page
This commit is contained in:
parent
64a666f34a
commit
02746834ec
@ -1,6 +1,4 @@
|
||||
import { InformationCircleIcon } from '@heroicons/react/24/outline';
|
||||
import OrderConfirmation from 'components/orders/order-confirmation';
|
||||
import ActivateWarranty from 'components/orders/activate-warranty';
|
||||
import MobileOrderActions from 'components/orders/mobile-order-actions';
|
||||
import OrdersHeader from 'components/orders/orders-header';
|
||||
import Price from 'components/price';
|
||||
@ -9,6 +7,10 @@ import { isBeforeToday, toPrintDate } from 'lib/utils';
|
||||
import Image from 'next/image';
|
||||
import Link from 'next/link';
|
||||
import { Button } from 'components/ui';
|
||||
import dynamic from 'next/dynamic';
|
||||
|
||||
const OrderConfirmation = dynamic(() => import('components/orders/order-confirmation'));
|
||||
const ActivateWarranty = dynamic(() => import('components/orders/activate-warranty'));
|
||||
|
||||
export default async function AccountPage() {
|
||||
const orders = await getCustomerOrders();
|
||||
|
Loading…
x
Reference in New Issue
Block a user