Finalize changes to using modals for user feedback

This commit is contained in:
Keannu Christian Bernasol 2023-08-14 21:57:52 +08:00
parent ff114b496c
commit 2ca1dd13ca
11 changed files with 119 additions and 90 deletions

View file

@ -37,8 +37,8 @@ export default function Revalidation() {
dispatch(setOnboarding());
toast.show("Previous session restored", {
type: "success",
placement: "bottom",
duration: 4000,
placement: "top",
duration: 2000,
animationType: "slide-in",
});
await setTimeout(() => {
@ -48,8 +48,8 @@ export default function Revalidation() {
dispatch(unsetOnboarding());
toast.show("Previous session restored", {
type: "success",
placement: "bottom",
duration: 4000,
placement: "top",
duration: 2000,
animationType: "slide-in",
});
await setTimeout(() => {
@ -60,8 +60,8 @@ export default function Revalidation() {
await setState("Session expired");
toast.show("Session expired. Please login again", {
type: "warning",
placement: "bottom",
duration: 4000,
placement: "top",
duration: 2000,
animationType: "slide-in",
});
await setTimeout(() => {