Skip to content

Commit

Permalink
refactor(multi): updated ui for ecommerce app.
Browse files Browse the repository at this point in the history
  • Loading branch information
DeepKumbhare85 committed May 17, 2024
1 parent c3655fa commit 707a47e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 29 deletions.
2 changes: 0 additions & 2 deletions typescript-version/src/layouts/components/NavItems.vue
Original file line number Diff line number Diff line change
Expand Up @@ -113,14 +113,12 @@ import VerticalNavLink from '@layouts/components/VerticalNavLink.vue'
<VerticalNavLink
:item="{
title: 'Shop',
icon: 'ri-user-settings-line',
to: '/apps/ecommerce/products',
}"
/>
<VerticalNavLink
:item="{
title: 'Product',
icon: 'ri-user-settings-line',
to: { name: 'apps-ecommerce-products-id', params: { id: 1 } },
}"
/>
Expand Down
31 changes: 4 additions & 27 deletions typescript-version/src/pages/apps/ecommerce/products/[id].vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,10 @@ const quantity = ref(0)
</div>

<div>
<p>{{ product.productDescription }} Lorem ipsum dolor, sit amet consectetur adipisicing elit. Dolor eum quam dolore ratione aspernatur nobis. Assumenda dicta voluptatibus reiciendis repudiandae?</p>

<p>
{{ product.productDescription }}
Lorem ipsum dolor, sit amet consectetur adipisicing elit. Dolor eum quam dolore ratione aspernatur nobis. Assumenda dicta voluptatibus reiciendis repudiandae?
</p>
<VRating
:model-value="product.rating"
readonly
Expand Down Expand Up @@ -84,31 +86,6 @@ const quantity = ref(0)
</VListItem>
</VList>

<!--
<div
v-if="quantity"
class="d-flex gap-1 align-center mb-4"
>
<VBtnToggle density="compact">
<VBtn
icon="ri-subtract-line"
rounded
density="compact"
size="small"
@click="quantity > 0 ? quantity -= 1 : 1"
/>
<VBtn variant="text">
{{ quantity }}
</VBtn>
<VBtn
icon="ri-add-line"
rounded
@click="quantity += 1"
/>
</VBtnToggle>
</div>
-->

<VBtn
prepend-icon="ri-shopping-cart-line"
class="text-center"
Expand Down

0 comments on commit 707a47e

Please sign in to comment.