From 4309766f1d5ab9ddf1616883dd95aca55826c0c8 Mon Sep 17 00:00:00 2001 From: prasanth Date: Tue, 3 Dec 2024 13:27:40 +0530 Subject: [PATCH] feat: header button change for web and mobile --- analytics/auth.analytics.ts | 7 +++- components/core/navbar/login-btn.tsx | 4 +- components/core/navbar/mobile-nav-drawer.tsx | 4 +- components/core/navbar/nav-bar.tsx | 4 +- components/core/navbar/sign-up.tsx | 41 ++++++++++++++++++++ utils/constants.ts | 1 + 6 files changed, 56 insertions(+), 5 deletions(-) create mode 100644 components/core/navbar/sign-up.tsx diff --git a/analytics/auth.analytics.ts b/analytics/auth.analytics.ts index 9fc1d9a5..a7d29499 100644 --- a/analytics/auth.analytics.ts +++ b/analytics/auth.analytics.ts @@ -24,6 +24,10 @@ export const useAuthAnalytics = () => { captureEvent(AUTH_ANALYTICS.AUTH_LOGIN_BTN_CLICKED); }; + const onSignUpBtnClicked = () => { + captureEvent(AUTH_ANALYTICS.AUTH_SIGN_UP_BTN_CLICKED); + } + const onProceedToLogin = () => { captureEvent(AUTH_ANALYTICS.AUTH_PROCEED_TO_LOGIN_CLICKED); }; @@ -100,6 +104,7 @@ export const useAuthAnalytics = () => { onUpdateEmailClicked, onUpdateEmailSuccess, onUpdateEmailFailure, - onUpdateSameEmailProvided + onUpdateSameEmailProvided, + onSignUpBtnClicked }; }; diff --git a/components/core/navbar/login-btn.tsx b/components/core/navbar/login-btn.tsx index 341c13bc..fb9cc2d5 100644 --- a/components/core/navbar/login-btn.tsx +++ b/components/core/navbar/login-btn.tsx @@ -23,13 +23,13 @@ const LoginBtn = () => { return ( <> + + ); +}; + +export default SignUpBtn; diff --git a/utils/constants.ts b/utils/constants.ts index 88d4d035..02f58b58 100644 --- a/utils/constants.ts +++ b/utils/constants.ts @@ -230,6 +230,7 @@ export const AUTH_ANALYTICS = { AUTH_SETTINGS_EMAIL_UPDATE_SUCCESS: 'AUTH_SETTINGS_EMAIL_UPDATE_SUCCESS', AUTH_SETTINGS_EMAIL_UPDATE_FAILED: 'AUTH_SETTINGS_EMAIL_UPDATE_FAILED', AUTH_SETTINGS_EMAIL_UPDATE_SAME_AS_OLD: 'AUTH_SETTINGS_EMAIL_UPDATE_SAME_AS_OLD', + AUTH_SIGN_UP_BTN_CLICKED: 'AUTH_SIGN_UP_BTN_CLICKED', }; export const TEAMS_ANALYTICS_EVENTS = {