From bca256dfc413400a6c17ca189a8f31a15d82473a Mon Sep 17 00:00:00 2001 From: "HATEC\\SPVDEV001" Date: Sat, 2 Sep 2023 10:36:41 +0700 Subject: button wa jika sudah login redirect ke halaman sebelumnya --- src/core/utils/whatsappUrl.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/core/utils') diff --git a/src/core/utils/whatsappUrl.js b/src/core/utils/whatsappUrl.js index c5959ed6..6c354924 100644 --- a/src/core/utils/whatsappUrl.js +++ b/src/core/utils/whatsappUrl.js @@ -1,9 +1,9 @@ import { getAuth } from "./auth" -const whatsappUrl = (template = 'default', payload) => { +const whatsappUrl = (template = 'default', payload, urlPath = '') => { let user = getAuth() if(!user){ - return '/login' + return `/login?next=${urlPath}` } let parentName = user.parentName || '-' let url = 'https://wa.me/628128080622' -- cgit v1.2.3 From 009aab3dfc5a08f19c8e147f380dc6517b9f6fd1 Mon Sep 17 00:00:00 2001 From: "HATEC\\SPVDEV001" Date: Tue, 5 Sep 2023 10:09:08 +0700 Subject: cr icon & uncomment login google --- src/core/utils/auth.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core/utils') diff --git a/src/core/utils/auth.js b/src/core/utils/auth.js index a7244747..03b20ae2 100644 --- a/src/core/utils/auth.js +++ b/src/core/utils/auth.js @@ -29,7 +29,7 @@ const setAuth = (user) => { * @returns {boolean} - Returns `true`. */ const deleteAuth = async() => { - // await signOut() + await signOut() deleteCookie('auth') return true } -- cgit v1.2.3