Skip to content

Commit

Permalink
chore: fix syntax highlighting
Browse files Browse the repository at this point in the history
use parentheses while using things like `as` and `instanceof` inside vue templates
  • Loading branch information
brc-dd committed Apr 25, 2024
1 parent cde5cb8 commit 021f6b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/components/SIcon.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ defineProps<{
</script>

<template>
<Icon v-if="typeof icon.body === 'string'" :icon="icon as IconifyIcon" />
<Icon v-if="typeof icon.body === 'string'" :icon="(icon as IconifyIcon)" />
<component v-else :is="icon" />
</template>

0 comments on commit 021f6b3

Please sign in to comment.