Skip to content

Commit 17cc79e

Browse files
authored
fix: remove default props from ProjectCard component (#19)
1 parent ebc3ac1 commit 17cc79e

File tree

12 files changed

+40
-153
lines changed

12 files changed

+40
-153
lines changed

src/assets/use-cases/elizaos.png

384 KB
Loading
214 KB
Loading

src/components/ActionButton.vue

Lines changed: 0 additions & 45 deletions
This file was deleted.

src/components/ProjectCard.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ interface Props {
8181
icon: string;
8282
status: 'available' | 'coming-soon' | 'interactive';
8383
statusLabel: string;
84-
buttonVariant: 'primary' | 'disabled';
8584
buttonLabel: string;
8685
buttonIcon: string;
8786
buttonHref?: string;
@@ -92,7 +91,7 @@ interface Props {
9291
githubLabel?: string;
9392
}
9493
95-
const props = withDefaults(defineProps<Props>(), {});
94+
const props = defineProps<Props>();
9695
9796
const statusIcon = computed(() => {
9897
switch (props.status) {

src/components/UseCaseCard.vue

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,19 @@
2929
</div>
3030

3131
<!-- Actions -->
32-
<div class="flex flex-wrap gap-4">
33-
<Button as="a" :href="demoUrl" target="_blank" rel="noreferrer">
32+
<div v-if="githubUrl || demoUrl" class="flex flex-wrap gap-4">
33+
<Button
34+
v-if="demoUrl"
35+
as="a"
36+
:href="demoUrl"
37+
target="_blank"
38+
rel="noreferrer"
39+
>
3440
<Icon :icon="demoIcon" height="18" />
3541
Try Live Demo
3642
</Button>
3743
<Button
44+
v-if="githubUrl"
3845
as="a"
3946
:href="githubUrl"
4047
target="_blank"
@@ -60,8 +67,8 @@ interface Props {
6067
imageUrl: string;
6168
imageAlt: string;
6269
features: string[];
63-
demoUrl: string;
64-
githubUrl: string;
70+
demoUrl?: string;
71+
githubUrl?: string;
6572
demoIcon: string;
6673
}
6774

src/components/ui/Button.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
22
<component
3-
:is="as || 'button'"
4-
:type="as === 'button' || !as ? 'button' : undefined"
3+
:is="as"
4+
:type="as === 'button' ? 'button' : undefined"
55
:class="buttonClasses"
66
v-bind="$attrs"
77
>

src/overview/tooling-and-explorers/blockchain-explorer.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ publicly auditable.
6969

7070
::: tip 💡 Dev Tip
7171

72-
Use **Bellecour** for development and testing as it's a
73-
gasless blockchain, then deploy to **Arbitrum** for production workloads.
72+
Use **Bellecour** for development and testing as it's a gasless blockchain, then
73+
deploy to **Arbitrum** for production workloads.
7474

7575
:::
7676

src/overview/use-case-demo/content-creator.md

Lines changed: 0 additions & 31 deletions
This file was deleted.

0 commit comments

Comments
 (0)