Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
brc-dd committed Jun 14, 2024
1 parent 88f3f8e commit e558a43
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/components/SAlert.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<script setup lang="ts">
import IconSuccess from '~icons/ph/check-bold'
import IconCheck from '~icons/ph/check-bold'
import IconInfo from '~icons/ph/info-bold'
import IconWarning from '~icons/ph/warning-bold'
import IconDanger from '~icons/ph/warning-octagon-bold'
import IconWarningOctagon from '~icons/ph/warning-octagon-bold'
withDefaults(defineProps<{
mode?: 'info' | 'success' | 'warning' | 'danger'
Expand All @@ -15,9 +15,9 @@ withDefaults(defineProps<{
<div class="SAlert" :class="[mode]">
<div class="icon">
<IconInfo v-if="mode === 'info'" class="icon-svg" />
<IconSuccess v-if="mode === 'success'" class="icon-svg" />
<IconCheck v-if="mode === 'success'" class="icon-svg" />
<IconWarning v-if="mode === 'warning'" class="icon-svg" />
<IconDanger v-if="mode === 'danger'" class="icon-svg" />
<IconWarningOctagon v-if="mode === 'danger'" class="icon-svg" />
</div>
<div class="content">
<slot />
Expand Down

0 comments on commit e558a43

Please sign in to comment.