✨ (login) notify when token is saved.
This commit is contained in:
16
src/utils/notif.ts
Normal file
16
src/utils/notif.ts
Normal 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
|
||||
})
|
||||
Reference in New Issue
Block a user