質問編集履歴
1
reviews→label
test
CHANGED
File without changes
|
test
CHANGED
@@ -55,7 +55,7 @@
|
|
55
55
|
```shopCard.tsx
|
56
56
|
|
57
57
|
export const ShopCard = (props: Restaurant) => {
|
58
|
-
const { id, name, description, price, thumbnailUrl, holidays, reviews,
|
58
|
+
const { id, name, description, price, thumbnailUrl, holidays, reviews, label} = props;
|
59
59
|
|
60
60
|
return (
|
61
61
|
<>
|
@@ -67,9 +67,9 @@
|
|
67
67
|
</div>
|
68
68
|
<div>
|
69
69
|
<p className='text-xs rounded-full bg-gray-100 px-2 py-1 w-fit'>定休日</p>
|
70
|
-
{
|
70
|
+
{holidays && (
|
71
71
|
<ul>
|
72
|
-
{
|
72
|
+
{holidays.map((item, index) => (
|
73
73
|
<p key={index}>{label}</p>
|
74
74
|
))}
|
75
75
|
</ul>
|