diff --git a/config/swal.ts b/config/swal.ts index 3d3edfb..5832fb9 100644 --- a/config/swal.ts +++ b/config/swal.ts @@ -48,7 +48,7 @@ export function successRouter(redirect: string, router?: any) { MySwal.fire({ title: "Success!", icon: "success", - confirmButtonColor: "#3085d6", + confirmButtonColor: "#6642f5", confirmButtonText: "Ok", allowOutsideClick: false, }).then((result) => { @@ -59,15 +59,11 @@ export function successRouter(redirect: string, router?: any) { } export function success(title: string) { - MySwal.fire({ - title: title || "Success!", + Swal.fire({ + title: "Success!", icon: "success", - confirmButtonColor: "#3085d6", + confirmButtonColor: "#6642f5", confirmButtonText: "OK", - }).then((result) => { - if (result.isConfirmed) { - return true; - } }); } diff --git a/styles/globals.css b/styles/globals.css index 8c3fb0a..9db28b1 100644 --- a/styles/globals.css +++ b/styles/globals.css @@ -112,3 +112,10 @@ main { .custom-button { color: black !important; } + +.swal2-confirm { + background-color: #4275f5 !important; +} +.swal2-cancel { + background-color: #d33 !important; +}