Skip to content

Commit a41f149

Browse files
committed
fix: use afcl buttons in toast
1 parent 411ff9d commit a41f149

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

adminforth/spa/src/components/Toast.vue

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@
3434
<div class="flex flex-col items-center justify-center">
3535
{{toast.message}}
3636
<div v-if="toast.buttons" class="flex justify-center mt-2 gap-2">
37-
<div v-for="button in toast.buttons" class="rounded-md bg-lightButtonsBackground hover:bg-lightButtonsHover text-lightButtonsText dark:bg-darkPrimary dark:hover:bg-darkButtonsBackground dark:text-darkButtonsText">
38-
<button @click="onButtonClick(button.value)" class="px-2 py-1 rounded hover:bg-black/5 dark:hover:bg-white/10">
37+
<div v-for="button in toast.buttons">
38+
<Button @click="onButtonClick(button.value)" class="!px-2 py-0 text-md font-normal rounded-md">
3939
{{ button.label }}
40-
</button>
40+
</Button>
4141
</div>
4242
</div>
4343
</div>
@@ -55,6 +55,7 @@
5555
<script setup lang="ts">
5656
import { onMounted } from 'vue';
5757
import { useToastStore } from '@/stores/toast';
58+
import { Button } from '@/afcl';
5859
const toastStore = useToastStore();
5960
const emit = defineEmits(['close']);
6061
const props = defineProps<{

0 commit comments

Comments
 (0)