Modfied auth to use notification provider
This commit is contained in:
@@ -140,6 +140,7 @@ export function AuthProvider({ children }: PropsWithChildren) {
|
|||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
setUser(null);
|
setUser(null);
|
||||||
|
notify({type: "success", loading: false, title: "Logout successful!", message: ""}, 2000)
|
||||||
})
|
})
|
||||||
.catch((e) => {
|
.catch((e) => {
|
||||||
notify(
|
notify(
|
||||||
|
|||||||
Reference in New Issue
Block a user