Skip to content
This repository has been archived by the owner on Jun 5, 2024. It is now read-only.

Commit

Permalink
clean code
Browse files Browse the repository at this point in the history
  • Loading branch information
TaiSakuma committed Aug 14, 2023
1 parent 172e765 commit 0042759
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions src/views/product/ProductItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -79,15 +79,14 @@ import ProductItemCard from "@/components/product/item-card/ProductItemCard.vue"
import { useQueryState } from "@/utils/query-state";
// Use any for productItemCard because Component causes an error for unknown reason.
const props = withDefaults(
defineProps<{
productTypeId: number;
productItemCard?: any;
}>(),
{
productItemCard: () => ProductItemCard,
}
);
interface Props {
productTypeId: number;
productItemCard?: any;
}
const props = withDefaults(defineProps<Props>(), {
productItemCard: () => ProductItemCard,
});
const route = useRoute();
const router = useRouter();
Expand Down

0 comments on commit 0042759

Please sign in to comment.