Skip to content

Commit 5f17b74

Browse files
committed
fix: using info as default toast theme
1 parent 8bafec2 commit 5f17b74

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

components/Toast.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
'-translate-y-0': !toastState.show,
1818
'bg-green-400 text-gray-800': toastState.theme === 'success',
1919
'bg-red-400 text-white': toastState.theme === 'error',
20-
'bg-blue-400 text-white': toastState.theme !== 'success',
20+
'bg-blue-400 text-gray-800': toastState.theme === 'info',
2121
}"
2222
>
2323
<div class="flex justify-between gap-2">

store/toast.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export const mutations = {
2020
}
2121
const isAlreadyShowing = state.show;
2222
state.content = content;
23-
state.theme = theme;
23+
state.theme = theme || "info";
2424
state.iconHTML = iconHTML
2525
state.show = content && show;
2626
if (isAlreadyShowing && state.show && timeoutId) {

0 commit comments

Comments
 (0)