홈 업로드

This commit is contained in:
익희 김 2024-12-06 03:58:51 +09:00
parent 11f7cdf425
commit 1fa6f72233
4 changed files with 11 additions and 13 deletions

View File

@ -22,12 +22,12 @@ export default async function ShopComponent() {
}}
>
<Box>
<Typography variant="h2" color="text.primary" textAlign="center">
{/* <Typography variant="h2" color="text.primary" textAlign="center">
All Shops
</Typography>
<Typography variant="body1" color="text.secondary" textAlign="center">
Lorem Ipsum Is Simply Dummy Text Of The Printing And Typesetting Industry.
</Typography>
</Typography> */}
</Box>
<Box>
<Grid container spacing={2} justifyContent="center" alignItems="center">

View File

@ -15,7 +15,6 @@ import { IoIosArrowForward } from 'react-icons/io';
import { lang } from 'src/components/lang/kr';
export default function Index() {
const { data, isLoading } = useQuery(['featured-products'], () => api.getFeaturedProducts());
return (
<Box>
<Stack

View File

@ -9,10 +9,11 @@ import { Typography, Grid, Box, Stack, Paper, Button } from '@mui/material';
// icons
import { IoIosArrowForward } from 'react-icons/io';
// component
import ShopCard from 'src/components/cards/shop';
// import ShopCard from 'src/components/cards/shop';
import { lang } from 'src/components/lang/kr';
import ShopComponent from 'src/app/(user)/shops/page';
export default function ShopComponent() {
export default function ShopComponent2() {
const { shops = [], isLoading } = useSelector(({ shops }) => shops);
return (
@ -49,13 +50,11 @@ export default function ShopComponent() {
<Box>
<Grid container spacing={2} justifyContent="center" alignItems="center">
{(isLoading ? Array.from(new Array(6)) : shops)?.map((inner) => (
<React.Fragment key={Math.random()}>
<Grid item lg={3} md={4} sm={6} xs={12}>
<ShopCard shop={inner} isLoading={isLoading} />
</Grid>
</React.Fragment>
))}
<Grid item lg={3} md={4} sm={6} xs={12}>
{/* <ShopCard shop={inner} isLoading={isLoading} /> */}
<ShopComponent />
</Grid>
{!isLoading && !Boolean(shops?.length) && (
<Typography variant="h3" color="error.main" textAlign="center">
Shop not found

View File

@ -119,7 +119,7 @@ export default function ProductForm({
subCategory: currentProduct?.subCategory || (categories.length && categories[0].subCategories[0]?._id) || '',
status: currentProduct?.status || STATUS_OPTIONS[0],
blob: currentProduct?.blob || [],
isFeatured: currentProduct?.isFeatured || false,
isFeatured: currentProduct?.isFeatured || true,
sku: currentProduct?.sku || '',
price: currentProduct?.price || '',
priceSale: currentProduct?.priceSale || '',