feat: review modal

This commit is contained in:
Jannat Patel
2023-12-21 09:56:15 +05:30
parent eb3afbbad1
commit 4065b1b8cc
3 changed files with 58 additions and 16 deletions

View File

@@ -62,8 +62,7 @@
</div>
</div>
</div>
{{ showReviewModal }}
<ReviewModal v-model="showReviewModal"/>
<ReviewModal v-model="showReviewModal" v-model:reloadReviews="reviews"/>
</template>
<script setup>
import { Star } from 'lucide-vue-next'
@@ -83,6 +82,8 @@ const props = defineProps({
},
});
const reversedRange = (count) => Array.from({ length: count }, (_, index) => count - index);
const reviews = createResource({