(login) notify when token is saved.

This commit is contained in:
2021-04-04 16:45:43 +02:00
parent 913e046135
commit 1191fdbf9b
4 changed files with 23 additions and 0 deletions

16
src/utils/notif.ts Normal file
View File

@@ -0,0 +1,16 @@
import { Notyf } from 'notyf'
const notif = new Notyf({
types: [
{
className: 'notif-success',
type: 'confirm'
}
]
})
export const confirmMessage = (message: string) =>
notif.open({
type: 'confirm',
message
})