prettier fix
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
const SkeletonButton = () => {
|
||||
return <div className="w-full min-h-[50px] px-5 py-[10px] bg-gray-100"></div>
|
||||
}
|
||||
return <div className="min-h-[50px] w-full bg-gray-100 px-5 py-[10px]"></div>;
|
||||
};
|
||||
|
||||
export default SkeletonButton
|
||||
export default SkeletonButton;
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
const SkeletonCardDetails = () => {
|
||||
return (
|
||||
<div className="flex flex-col gap-1 my-4 transition-all duration-150 ease-in-out">
|
||||
<div className="h-4 bg-ui-bg-component-pressed rounded-md w-1/4 animate-pulse mb-1"></div>
|
||||
<div className="pt-3 pb-1 block w-full h-11 px-4 mt-0 bg-ui-bg-field border rounded-md appearance-none border-ui-border-base animate-pulse" />
|
||||
<div className="my-4 flex flex-col gap-1 transition-all duration-150 ease-in-out">
|
||||
<div className="bg-ui-bg-component-pressed mb-1 h-4 w-1/4 animate-pulse rounded-md"></div>
|
||||
<div className="bg-ui-bg-field border-ui-border-base mt-0 block h-11 w-full animate-pulse appearance-none rounded-md border px-4 pt-3 pb-1" />
|
||||
</div>
|
||||
)
|
||||
}
|
||||
);
|
||||
};
|
||||
|
||||
export default SkeletonCardDetails
|
||||
export default SkeletonCardDetails;
|
||||
|
||||
@@ -1,35 +1,35 @@
|
||||
import { Table } from "@medusajs/ui"
|
||||
import { Table } from '@medusajs/ui';
|
||||
|
||||
const SkeletonCartItem = () => {
|
||||
return (
|
||||
<Table.Row className="w-full m-4">
|
||||
<Table.Cell className="!pl-0 p-4 w-24">
|
||||
<div className="flex w-24 h-24 p-4 bg-gray-200 rounded-large animate-pulse" />
|
||||
<Table.Row className="m-4 w-full">
|
||||
<Table.Cell className="w-24 p-4 !pl-0">
|
||||
<div className="rounded-large flex h-24 w-24 animate-pulse bg-gray-200 p-4" />
|
||||
</Table.Cell>
|
||||
<Table.Cell className="text-left">
|
||||
<div className="flex flex-col gap-y-2">
|
||||
<div className="w-32 h-4 bg-gray-200 animate-pulse" />
|
||||
<div className="w-24 h-4 bg-gray-200 animate-pulse" />
|
||||
<div className="h-4 w-32 animate-pulse bg-gray-200" />
|
||||
<div className="h-4 w-24 animate-pulse bg-gray-200" />
|
||||
</div>
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
<div className="flex gap-2 items-center">
|
||||
<div className="w-6 h-8 bg-gray-200 animate-pulse" />
|
||||
<div className="w-14 h-10 bg-gray-200 animate-pulse" />
|
||||
<div className="flex items-center gap-2">
|
||||
<div className="h-8 w-6 animate-pulse bg-gray-200" />
|
||||
<div className="h-10 w-14 animate-pulse bg-gray-200" />
|
||||
</div>
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
<div className="flex gap-2">
|
||||
<div className="w-12 h-6 bg-gray-200 animate-pulse" />
|
||||
<div className="h-6 w-12 animate-pulse bg-gray-200" />
|
||||
</div>
|
||||
</Table.Cell>
|
||||
<Table.Cell className="!pr-0 text-right">
|
||||
<div className="flex gap-2 justify-end">
|
||||
<div className="w-12 h-6 bg-gray-200 animate-pulse" />
|
||||
<div className="flex justify-end gap-2">
|
||||
<div className="h-6 w-12 animate-pulse bg-gray-200" />
|
||||
</div>
|
||||
</Table.Cell>
|
||||
</Table.Row>
|
||||
)
|
||||
}
|
||||
);
|
||||
};
|
||||
|
||||
export default SkeletonCartItem
|
||||
export default SkeletonCartItem;
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
const SkeletonCartTotals = ({ header = true }) => {
|
||||
return (
|
||||
<div className="flex flex-col">
|
||||
{header && <div className="w-32 h-4 bg-gray-100 mb-4"></div>}
|
||||
{header && <div className="mb-4 h-4 w-32 bg-gray-100"></div>}
|
||||
<div className="flex items-center justify-between">
|
||||
<div className="w-32 h-3 bg-gray-100"></div>
|
||||
<div className="w-32 h-3 bg-gray-100"></div>
|
||||
<div className="h-3 w-32 bg-gray-100"></div>
|
||||
<div className="h-3 w-32 bg-gray-100"></div>
|
||||
</div>
|
||||
|
||||
<div className="flex items-center justify-between my-4">
|
||||
<div className="w-24 h-3 bg-gray-100"></div>
|
||||
<div className="w-24 h-3 bg-gray-100"></div>
|
||||
<div className="my-4 flex items-center justify-between">
|
||||
<div className="h-3 w-24 bg-gray-100"></div>
|
||||
<div className="h-3 w-24 bg-gray-100"></div>
|
||||
</div>
|
||||
|
||||
<div className="flex items-center justify-between">
|
||||
<div className="w-28 h-3 bg-gray-100 "></div>
|
||||
<div className="w-20 h-3 bg-gray-100"></div>
|
||||
<div className="h-3 w-28 bg-gray-100"></div>
|
||||
<div className="h-3 w-20 bg-gray-100"></div>
|
||||
</div>
|
||||
|
||||
<div className="w-full border-b border-gray-200 border-dashed my-4"></div>
|
||||
<div className="my-4 w-full border-b border-dashed border-gray-200"></div>
|
||||
|
||||
<div className="flex items-center justify-between">
|
||||
<div className="w-32 h-6 bg-gray-100 mb-4"></div>
|
||||
<div className="w-24 h-6 bg-gray-100 mb-4"></div>
|
||||
<div className="mb-4 h-6 w-32 bg-gray-100"></div>
|
||||
<div className="mb-4 h-6 w-24 bg-gray-100"></div>
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
);
|
||||
};
|
||||
|
||||
export default SkeletonCartTotals
|
||||
export default SkeletonCartTotals;
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
const SkeletonCodeForm = () => {
|
||||
return (
|
||||
<div className="w-full flex flex-col">
|
||||
<div className="bg-gray-100 h-7 w-24 mb-4"></div>
|
||||
<div className="flex w-full flex-col">
|
||||
<div className="mb-4 h-7 w-24 bg-gray-100"></div>
|
||||
<div className="grid grid-cols-[1fr_80px] gap-x-2">
|
||||
<div className="bg-gray-100 h-12"></div>
|
||||
<div className="bg-gray-100 h-12"></div>
|
||||
<div className="h-12 bg-gray-100"></div>
|
||||
<div className="h-12 bg-gray-100"></div>
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
);
|
||||
};
|
||||
|
||||
export default SkeletonCodeForm
|
||||
export default SkeletonCodeForm;
|
||||
|
||||
@@ -1,35 +1,35 @@
|
||||
import { Table } from "@medusajs/ui"
|
||||
import { Table } from '@medusajs/ui';
|
||||
|
||||
const SkeletonLineItem = () => {
|
||||
return (
|
||||
<Table.Row className="w-full m-4">
|
||||
<Table.Cell className="p-4 w-24">
|
||||
<div className="flex w-24 h-24 p-4 bg-gray-200 animate-pulse" />
|
||||
<Table.Row className="m-4 w-full">
|
||||
<Table.Cell className="w-24 p-4">
|
||||
<div className="flex h-24 w-24 animate-pulse bg-gray-200 p-4" />
|
||||
</Table.Cell>
|
||||
<Table.Cell className="text-left">
|
||||
<div className="flex flex-col gap-y-2">
|
||||
<div className="w-32 h-4 bg-gray-200 animate-pulse" />
|
||||
<div className="w-24 h-4 bg-gray-200 animate-pulse" />
|
||||
<div className="h-4 w-32 animate-pulse bg-gray-200" />
|
||||
<div className="h-4 w-24 animate-pulse bg-gray-200" />
|
||||
</div>
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
<div className="flex gap-2 items-center">
|
||||
<div className="w-6 h-8 bg-gray-200 animate-pulse" />
|
||||
<div className="w-14 h-10 bg-gray-200 animate-pulse" />
|
||||
<div className="flex items-center gap-2">
|
||||
<div className="h-8 w-6 animate-pulse bg-gray-200" />
|
||||
<div className="h-10 w-14 animate-pulse bg-gray-200" />
|
||||
</div>
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
<div className="flex gap-2">
|
||||
<div className="w-12 h-6 bg-gray-200 animate-pulse" />
|
||||
<div className="h-6 w-12 animate-pulse bg-gray-200" />
|
||||
</div>
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
<div className="flex gap-2 justify-end">
|
||||
<div className="w-12 h-6 bg-gray-200 animate-pulse" />
|
||||
<div className="flex justify-end gap-2">
|
||||
<div className="h-6 w-12 animate-pulse bg-gray-200" />
|
||||
</div>
|
||||
</Table.Cell>
|
||||
</Table.Row>
|
||||
)
|
||||
}
|
||||
);
|
||||
};
|
||||
|
||||
export default SkeletonLineItem
|
||||
export default SkeletonLineItem;
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
const SkeletonOrderConfirmedHeader = () => {
|
||||
return (
|
||||
<div className="flex flex-col gap-y-2 pb-10 animate-pulse">
|
||||
<div className="w-2/5 h-4 bg-gray-100"></div>
|
||||
<div className="w-3/6 h-6 bg-gray-100"></div>
|
||||
<div className="flex animate-pulse flex-col gap-y-2 pb-10">
|
||||
<div className="h-4 w-2/5 bg-gray-100"></div>
|
||||
<div className="h-6 w-3/6 bg-gray-100"></div>
|
||||
<div className="flex gap-x-4">
|
||||
<div className="w-16 h-4 bg-gray-100"></div>
|
||||
<div className="w-12 h-4 bg-gray-100"></div>
|
||||
<div className="h-4 w-16 bg-gray-100"></div>
|
||||
<div className="h-4 w-12 bg-gray-100"></div>
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
);
|
||||
};
|
||||
|
||||
export default SkeletonOrderConfirmedHeader
|
||||
export default SkeletonOrderConfirmedHeader;
|
||||
|
||||
@@ -1,36 +1,36 @@
|
||||
import SkeletonCartTotals from "@modules/skeletons/components/skeleton-cart-totals"
|
||||
import SkeletonCartTotals from '@modules/skeletons/components/skeleton-cart-totals';
|
||||
|
||||
const SkeletonOrderInformation = () => {
|
||||
return (
|
||||
<div>
|
||||
<div className="grid grid-cols-1 lg:grid-cols-2 gap-4 py-10 border-b border-gray-200">
|
||||
<div className="grid grid-cols-1 gap-4 border-b border-gray-200 py-10 lg:grid-cols-2">
|
||||
<div className="flex flex-col">
|
||||
<div className="w-32 h-4 bg-gray-100 mb-4"></div>
|
||||
<div className="w-2/6 h-3 bg-gray-100"></div>
|
||||
<div className="w-3/6 h-3 bg-gray-100 my-2"></div>
|
||||
<div className="w-1/6 h-3 bg-gray-100"></div>
|
||||
<div className="mb-4 h-4 w-32 bg-gray-100"></div>
|
||||
<div className="h-3 w-2/6 bg-gray-100"></div>
|
||||
<div className="my-2 h-3 w-3/6 bg-gray-100"></div>
|
||||
<div className="h-3 w-1/6 bg-gray-100"></div>
|
||||
</div>
|
||||
<div className="flex flex-col">
|
||||
<div className="w-32 h-4 bg-gray-100 mb-4"></div>
|
||||
<div className="w-2/6 h-3 bg-gray-100"></div>
|
||||
<div className="w-3/6 h-3 bg-gray-100 my-2"></div>
|
||||
<div className="w-2/6 h-3 bg-gray-100"></div>
|
||||
<div className="w-1/6 h-3 bg-gray-100 mt-2"></div>
|
||||
<div className="w-32 h-4 bg-gray-100 my-4"></div>
|
||||
<div className="w-1/6 h-3 bg-gray-100"></div>
|
||||
<div className="mb-4 h-4 w-32 bg-gray-100"></div>
|
||||
<div className="h-3 w-2/6 bg-gray-100"></div>
|
||||
<div className="my-2 h-3 w-3/6 bg-gray-100"></div>
|
||||
<div className="h-3 w-2/6 bg-gray-100"></div>
|
||||
<div className="mt-2 h-3 w-1/6 bg-gray-100"></div>
|
||||
<div className="my-4 h-4 w-32 bg-gray-100"></div>
|
||||
<div className="h-3 w-1/6 bg-gray-100"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div className="grid grid-cols-1 lg:grid-cols-2 gap-4 py-10">
|
||||
<div className="grid grid-cols-1 gap-4 py-10 lg:grid-cols-2">
|
||||
<div className="flex flex-col">
|
||||
<div className="w-32 h-4 bg-gray-100 mb-4"></div>
|
||||
<div className="w-2/6 h-3 bg-gray-100"></div>
|
||||
<div className="w-3/6 h-3 bg-gray-100 my-4"></div>
|
||||
<div className="mb-4 h-4 w-32 bg-gray-100"></div>
|
||||
<div className="h-3 w-2/6 bg-gray-100"></div>
|
||||
<div className="my-4 h-3 w-3/6 bg-gray-100"></div>
|
||||
</div>
|
||||
|
||||
<SkeletonCartTotals />
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
);
|
||||
};
|
||||
|
||||
export default SkeletonOrderInformation
|
||||
export default SkeletonOrderInformation;
|
||||
|
||||
@@ -1,43 +1,43 @@
|
||||
const SkeletonOrderItems = () => {
|
||||
return (
|
||||
<div className="flex flex-col gap-y-4 py-10 border-y border-gray-200">
|
||||
<div className="flex flex-col gap-y-4 border-y border-gray-200 py-10">
|
||||
<div className="grid grid-cols-[122px_1fr] gap-x-4">
|
||||
<div className="w-full aspect-[29/34] bg-gray-100"></div>
|
||||
<div className="aspect-[29/34] w-full bg-gray-100"></div>
|
||||
<div className="flex items-start justify-between">
|
||||
<div className="flex flex-col gap-y-2">
|
||||
<div className="w-48 h-6 bg-gray-100"></div>
|
||||
<div className="w-24 h-4 bg-gray-100"></div>
|
||||
<div className="w-32 h-4 bg-gray-100"></div>
|
||||
<div className="h-6 w-48 bg-gray-100"></div>
|
||||
<div className="h-4 w-24 bg-gray-100"></div>
|
||||
<div className="h-4 w-32 bg-gray-100"></div>
|
||||
</div>
|
||||
<div className="w-32 h-6 bg-gray-100"></div>
|
||||
<div className="h-6 w-32 bg-gray-100"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="grid grid-cols-[122px_1fr] gap-x-4">
|
||||
<div className="w-full aspect-[29/34] bg-gray-100"></div>
|
||||
<div className="aspect-[29/34] w-full bg-gray-100"></div>
|
||||
<div className="flex items-start justify-between">
|
||||
<div className="flex flex-col gap-y-2">
|
||||
<div className="w-48 h-6 bg-gray-100"></div>
|
||||
<div className="w-24 h-4 bg-gray-100"></div>
|
||||
<div className="w-32 h-4 bg-gray-100"></div>
|
||||
<div className="h-6 w-48 bg-gray-100"></div>
|
||||
<div className="h-4 w-24 bg-gray-100"></div>
|
||||
<div className="h-4 w-32 bg-gray-100"></div>
|
||||
</div>
|
||||
<div className="w-32 h-6 bg-gray-100"></div>
|
||||
<div className="h-6 w-32 bg-gray-100"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="grid grid-cols-[122px_1fr] gap-x-4">
|
||||
<div className="w-full aspect-[29/34] bg-gray-100"></div>
|
||||
<div className="aspect-[29/34] w-full bg-gray-100"></div>
|
||||
<div className="flex items-start justify-between">
|
||||
<div className="flex flex-col gap-y-2">
|
||||
<div className="w-48 h-6 bg-gray-100"></div>
|
||||
<div className="w-24 h-4 bg-gray-100"></div>
|
||||
<div className="w-32 h-4 bg-gray-100"></div>
|
||||
<div className="h-6 w-48 bg-gray-100"></div>
|
||||
<div className="h-4 w-24 bg-gray-100"></div>
|
||||
<div className="h-4 w-32 bg-gray-100"></div>
|
||||
</div>
|
||||
<div className="w-32 h-6 bg-gray-100"></div>
|
||||
<div className="h-6 w-32 bg-gray-100"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
);
|
||||
};
|
||||
|
||||
export default SkeletonOrderItems
|
||||
export default SkeletonOrderItems;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import SkeletonButton from "@modules/skeletons/components/skeleton-button"
|
||||
import SkeletonCartTotals from "@modules/skeletons/components/skeleton-cart-totals"
|
||||
import SkeletonButton from '@modules/skeletons/components/skeleton-button';
|
||||
import SkeletonCartTotals from '@modules/skeletons/components/skeleton-cart-totals';
|
||||
|
||||
const SkeletonOrderSummary = () => {
|
||||
return (
|
||||
@@ -9,7 +9,7 @@ const SkeletonOrderSummary = () => {
|
||||
<SkeletonButton />
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
);
|
||||
};
|
||||
|
||||
export default SkeletonOrderSummary
|
||||
export default SkeletonOrderSummary;
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
import { Container } from "@medusajs/ui"
|
||||
import { Container } from '@medusajs/ui';
|
||||
|
||||
const SkeletonProductPreview = () => {
|
||||
return (
|
||||
<div className="animate-pulse">
|
||||
<Container className="aspect-[9/16] w-full bg-gray-100 bg-ui-bg-subtle" />
|
||||
<div className="flex justify-between text-base-regular mt-2">
|
||||
<div className="w-2/5 h-6 bg-gray-100"></div>
|
||||
<div className="w-1/5 h-6 bg-gray-100"></div>
|
||||
<Container className="bg-ui-bg-subtle aspect-[9/16] w-full bg-gray-100" />
|
||||
<div className="text-base-regular mt-2 flex justify-between">
|
||||
<div className="h-6 w-2/5 bg-gray-100"></div>
|
||||
<div className="h-6 w-1/5 bg-gray-100"></div>
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
);
|
||||
};
|
||||
|
||||
export default SkeletonProductPreview
|
||||
export default SkeletonProductPreview;
|
||||
|
||||
@@ -1,45 +1,44 @@
|
||||
import { Table } from "@medusajs/ui"
|
||||
|
||||
import repeat from "@lib/util/repeat"
|
||||
import SkeletonCartItem from "@modules/skeletons/components/skeleton-cart-item"
|
||||
import SkeletonCodeForm from "@modules/skeletons/components/skeleton-code-form"
|
||||
import SkeletonOrderSummary from "@modules/skeletons/components/skeleton-order-summary"
|
||||
import repeat from '@lib/util/repeat';
|
||||
import { Table } from '@medusajs/ui';
|
||||
import SkeletonCartItem from '@modules/skeletons/components/skeleton-cart-item';
|
||||
import SkeletonCodeForm from '@modules/skeletons/components/skeleton-code-form';
|
||||
import SkeletonOrderSummary from '@modules/skeletons/components/skeleton-order-summary';
|
||||
|
||||
const SkeletonCartPage = () => {
|
||||
return (
|
||||
<div className="py-12">
|
||||
<div className="content-container">
|
||||
<div className="grid grid-cols-1 small:grid-cols-[1fr_360px] gap-x-40">
|
||||
<div className="flex flex-col bg-white p-6 gap-y-6">
|
||||
<div className="bg-white flex items-start justify-between">
|
||||
<div className="small:grid-cols-[1fr_360px] grid grid-cols-1 gap-x-40">
|
||||
<div className="flex flex-col gap-y-6 bg-white p-6">
|
||||
<div className="flex items-start justify-between bg-white">
|
||||
<div className="flex flex-col gap-y-2">
|
||||
<div className="w-60 h-8 bg-gray-200 animate-pulse" />
|
||||
<div className="w-48 h-6 bg-gray-200 animate-pulse" />
|
||||
<div className="h-8 w-60 animate-pulse bg-gray-200" />
|
||||
<div className="h-6 w-48 animate-pulse bg-gray-200" />
|
||||
</div>
|
||||
<div>
|
||||
<div className="w-14 h-8 bg-gray-200 animate-pulse" />
|
||||
<div className="h-8 w-14 animate-pulse bg-gray-200" />
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<div className="pb-3 flex items-center">
|
||||
<div className="w-20 h-12 bg-gray-200 animate-pulse" />
|
||||
<div className="flex items-center pb-3">
|
||||
<div className="h-12 w-20 animate-pulse bg-gray-200" />
|
||||
</div>
|
||||
<Table>
|
||||
<Table.Header className="border-t-0">
|
||||
<Table.Row>
|
||||
<Table.HeaderCell className="!pl-0">
|
||||
<div className="w-10 h-6 bg-gray-200 animate-pulse" />
|
||||
<div className="h-6 w-10 animate-pulse bg-gray-200" />
|
||||
</Table.HeaderCell>
|
||||
<Table.HeaderCell></Table.HeaderCell>
|
||||
<Table.HeaderCell>
|
||||
<div className="w-16 h-6 bg-gray-200 animate-pulse" />
|
||||
<div className="h-6 w-16 animate-pulse bg-gray-200" />
|
||||
</Table.HeaderCell>
|
||||
<Table.HeaderCell>
|
||||
<div className="w-12 h-6 bg-gray-200 animate-pulse" />
|
||||
<div className="h-6 w-12 animate-pulse bg-gray-200" />
|
||||
</Table.HeaderCell>
|
||||
<Table.HeaderCell className="!pr-0">
|
||||
<div className="flex justify-end">
|
||||
<div className="w-12 h-6 bg-gray-200 animate-pulse" />
|
||||
<div className="h-6 w-12 animate-pulse bg-gray-200" />
|
||||
</div>
|
||||
</Table.HeaderCell>
|
||||
</Table.Row>
|
||||
@@ -59,7 +58,7 @@ const SkeletonCartPage = () => {
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
);
|
||||
};
|
||||
|
||||
export default SkeletonCartPage
|
||||
export default SkeletonCartPage;
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
import SkeletonOrderConfirmedHeader from "@modules/skeletons/components/skeleton-order-confirmed-header"
|
||||
import SkeletonOrderInformation from "@modules/skeletons/components/skeleton-order-information"
|
||||
import SkeletonOrderItems from "@modules/skeletons/components/skeleton-order-items"
|
||||
import SkeletonOrderConfirmedHeader from '@modules/skeletons/components/skeleton-order-confirmed-header';
|
||||
import SkeletonOrderInformation from '@modules/skeletons/components/skeleton-order-information';
|
||||
import SkeletonOrderItems from '@modules/skeletons/components/skeleton-order-items';
|
||||
|
||||
const SkeletonOrderConfirmed = () => {
|
||||
return (
|
||||
<div className="bg-gray-50 py-6 min-h-[calc(100vh-64px)] animate-pulse">
|
||||
<div className="min-h-[calc(100vh-64px)] animate-pulse bg-gray-50 py-6">
|
||||
<div className="content-container flex justify-center">
|
||||
<div className="max-w-4xl h-full bg-white w-full p-10">
|
||||
<div className="h-full w-full max-w-4xl bg-white p-10">
|
||||
<SkeletonOrderConfirmedHeader />
|
||||
|
||||
<SkeletonOrderItems />
|
||||
@@ -15,7 +15,7 @@ const SkeletonOrderConfirmed = () => {
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
);
|
||||
};
|
||||
|
||||
export default SkeletonOrderConfirmed
|
||||
export default SkeletonOrderConfirmed;
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
import repeat from "@lib/util/repeat"
|
||||
import SkeletonProductPreview from "@modules/skeletons/components/skeleton-product-preview"
|
||||
import repeat from '@lib/util/repeat';
|
||||
import SkeletonProductPreview from '@modules/skeletons/components/skeleton-product-preview';
|
||||
|
||||
const SkeletonProductGrid = ({
|
||||
numberOfProducts = 8,
|
||||
}: {
|
||||
numberOfProducts?: number
|
||||
numberOfProducts?: number;
|
||||
}) => {
|
||||
return (
|
||||
<ul
|
||||
className="grid grid-cols-2 small:grid-cols-3 medium:grid-cols-4 gap-x-6 gap-y-8 flex-1"
|
||||
className="small:grid-cols-3 medium:grid-cols-4 grid flex-1 grid-cols-2 gap-x-6 gap-y-8"
|
||||
data-testid="products-list-loader"
|
||||
>
|
||||
{repeat(numberOfProducts).map((index) => (
|
||||
@@ -17,7 +17,7 @@ const SkeletonProductGrid = ({
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
)
|
||||
}
|
||||
);
|
||||
};
|
||||
|
||||
export default SkeletonProductGrid
|
||||
export default SkeletonProductGrid;
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
import repeat from "@lib/util/repeat"
|
||||
import SkeletonProductPreview from "@modules/skeletons/components/skeleton-product-preview"
|
||||
import repeat from '@lib/util/repeat';
|
||||
import SkeletonProductPreview from '@modules/skeletons/components/skeleton-product-preview';
|
||||
|
||||
const SkeletonRelatedProducts = () => {
|
||||
return (
|
||||
<div className="product-page-constraint">
|
||||
<div className="flex flex-col gap-8 items-center text-center mb-8">
|
||||
<div className="w-20 h-6 animate-pulse bg-gray-100"></div>
|
||||
<div className="flex flex-col gap-4 items-center text-center mb-16">
|
||||
<div className="w-96 h-10 animate-pulse bg-gray-100"></div>
|
||||
<div className="w-48 h-10 animate-pulse bg-gray-100"></div>
|
||||
<div className="mb-8 flex flex-col items-center gap-8 text-center">
|
||||
<div className="h-6 w-20 animate-pulse bg-gray-100"></div>
|
||||
<div className="mb-16 flex flex-col items-center gap-4 text-center">
|
||||
<div className="h-10 w-96 animate-pulse bg-gray-100"></div>
|
||||
<div className="h-10 w-48 animate-pulse bg-gray-100"></div>
|
||||
</div>
|
||||
</div>
|
||||
<ul className="grid grid-cols-2 small:grid-cols-3 medium:grid-cols-4 gap-x-6 gap-y-8 flex-1">
|
||||
<ul className="small:grid-cols-3 medium:grid-cols-4 grid flex-1 grid-cols-2 gap-x-6 gap-y-8">
|
||||
{repeat(3).map((index) => (
|
||||
<li key={index}>
|
||||
<SkeletonProductPreview />
|
||||
@@ -19,7 +19,7 @@ const SkeletonRelatedProducts = () => {
|
||||
))}
|
||||
</ul>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
);
|
||||
};
|
||||
|
||||
export default SkeletonRelatedProducts
|
||||
export default SkeletonRelatedProducts;
|
||||
|
||||
Reference in New Issue
Block a user