Skip to content

Commit 61fff75

Browse files
committed
refactor: 최근 응원 받은 가게 컴포넌트 prop
1 parent 6ef065d commit 61fff75

File tree

1 file changed

+11
-14
lines changed

1 file changed

+11
-14
lines changed

src/app/(home)/_components/RecentlySupportStories/RecentlySupportStories.tsx

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,9 @@ const RecentlySupportedStoresContent = () => {
6666
{stores.map(store => (
6767
<Link href={`/stores/${store.id}`} key={store.id}>
6868
<SupportedStoreCard
69-
storeName={store.name}
70-
storeDistrict={store.district}
71-
storeNeighborhood={store.neighborhood}
72-
storeCategory={store.category}
69+
name={store.name}
70+
location={`${store.district} ${store.neighborhood}`}
71+
category={store.category}
7372
imageUrl={store.imageUrl}
7473
/>
7574
</Link>
@@ -80,18 +79,16 @@ const RecentlySupportedStoresContent = () => {
8079
};
8180

8281
type SupportedStoreCardProps = {
83-
storeName: string;
84-
storeDistrict: string;
85-
storeNeighborhood: string;
86-
storeCategory: string;
82+
name: string;
83+
location: string;
84+
category: string;
8785
imageUrl: string;
8886
};
8987

9088
const SupportedStoreCard = ({
91-
storeName,
92-
storeDistrict,
93-
storeNeighborhood,
94-
storeCategory,
89+
name: storeName,
90+
location,
91+
category,
9592
imageUrl,
9693
}: SupportedStoreCardProps) => {
9794
return (
@@ -105,10 +102,10 @@ const SupportedStoreCard = ({
105102
<HStack align='center' gap={6}>
106103
<Separated by={<hr className={styles.divider} />}>
107104
<Text as='span' typo='caption1Md' color='text.alternative'>
108-
{storeDistrict} {storeNeighborhood}
105+
{location}
109106
</Text>
110107
<Text as='span' typo='caption1Md' color='text.alternative'>
111-
{storeCategory}
108+
{category}
112109
</Text>
113110
</Separated>
114111
</HStack>

0 commit comments

Comments
 (0)