Skip to content

Commit a1d7791

Browse files
committed
fix: remove fallback values for demo and GitHub labels in UseCaseCard component
1 parent 1de09f1 commit a1d7791

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/components/UseCaseCard.vue

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
rel="noreferrer"
3939
>
4040
<Icon :icon="demoIcon" height="18" />
41-
{{ demoLabel || 'Try Live Demo' }}
41+
{{ demoLabel }}
4242
</Button>
4343
<Button
4444
v-if="githubUrl"
@@ -49,7 +49,7 @@
4949
variant="secondary"
5050
>
5151
<Icon icon="mdi:github" height="18" />
52-
{{ githubLabel || 'View Code' }}
52+
{{ githubLabel }}
5353
</Button>
5454
</div>
5555
</div>
@@ -74,5 +74,8 @@ interface Props {
7474
githubLabel?: string;
7575
}
7676
77-
defineProps<Props>();
77+
withDefaults(defineProps<Props>(), {
78+
demoLabel: 'Try Live Demo',
79+
githubLabel: 'View Code',
80+
});
7881
</script>

0 commit comments

Comments
 (0)