Skip to content

Commit

Permalink
Fix: weeklyPopularList, getBrandpath
Browse files Browse the repository at this point in the history
  • Loading branch information
cuconveniencestore authored and hookor committed May 31, 2024
1 parent b023e0f commit 613e2c4
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
17 changes: 10 additions & 7 deletions src/components/home/WeeklyPopular.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,16 @@ const WeeklyPopular = () => {
</WeeklyPopularTitle>
<WeeklyPopularList className={cx(Grid, SmStyle, MarginT12)}>
{brandList &&
brandList.map((item, idx) => (
<WeeklyPopularItem
data={item}
idx={idx}
key={item?.brand}
/>
))}
brandList.map(
(item, idx) =>
item && (
<WeeklyPopularItem
data={item}
idx={idx}
key={item?.brand}
/>
)
)}
</WeeklyPopularList>
</div>
);
Expand Down
2 changes: 1 addition & 1 deletion src/components/post/PostComments.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import React from 'react';
import { useId } from 'react';
import { useQuery } from '@tanstack/react-query';
import Comment from '@/components/post/Comment';
import { getComments } from '@/api/post';
import { styled } from 'styled-system/jsx';
import { COMMENT_TEXTS, POST_TEXTS } from '@/constants/texts';
import { PaddingTB60 } from '@/styles/styles';
import { CommentType } from '@/types/types';

const CTA = React.lazy(() => import('../common/CTA'));
const Comment = React.lazy(() => import('./Comment'));
const { count } = COMMENT_TEXTS;

const PostComments = ({
Expand Down
2 changes: 1 addition & 1 deletion src/utils/getBrandPath.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const pathMap = (brand: string) => {
탐앤탐스: '/png/tomntoms.png',
커피빈: '/png/coffeebean.png',
매머드커피: '/png/mammoth.png',
'나만의 카페': 'png/private.png'
'나만의 카페': '/png/private.png'
};
return brandObj[brand];
};
Expand Down

0 comments on commit 613e2c4

Please sign in to comment.