Skip to content

Commit ff7c91b

Browse files
author
Jostein Kringlen
committed
feat: add toast.warn() fn
1 parent be24632 commit ff7c91b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/core/toast.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ toast.error = createHandler('error');
4747
toast.success = createHandler('success');
4848
toast.loading = createHandler('loading');
4949
toast.custom = createHandler('custom');
50+
toast.warn = createHandler('warn');
5051

5152
toast.dismiss = (toastId?: string) => {
5253
dispatch({

0 commit comments

Comments
 (0)