File tree Expand file tree Collapse file tree 1 file changed +11
-14
lines changed
src/app/(home)/_components/RecentlySupportStories Expand file tree Collapse file tree 1 file changed +11
-14
lines changed Original file line number Diff line number Diff 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
8281type 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
9088const 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 >
You can’t perform that action at this time.
0 commit comments