Skip to content

Commit

Permalink
feat(view-reviews): list reviews of a product
Browse files Browse the repository at this point in the history
  • Loading branch information
aerotecnia99 committed Sep 20, 2023
1 parent 0f31c08 commit e821d2f
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions app/javascript/components/item-review-list.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<script setup lang="ts">
import type { Review } from '../api/reviews';
import ItemReviewCard from './item-review-card.vue';
type Props = {
reviews: Review[],
};
defineProps<Props>();
</script>

<template>
<div class="mx-auto flex flex-col">
<item-review-card
v-for="review in reviews"
:key="review.id"
:review="review"
/>
</div>
</template>

0 comments on commit e821d2f

Please sign in to comment.