Skip to content

Commit

Permalink
Merge into release (#236)
Browse files Browse the repository at this point in the history
Co-authored-by: Mohd Zishan <[email protected]>
  • Loading branch information
PhilexWong and Zishan-7 authored Oct 17, 2024
1 parent dd0c694 commit 3ab8ddd
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
6 changes: 6 additions & 0 deletions src/onboarding/Login.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ export default function Login() {
});
if (signInAttempt.status === 'complete') {
await setActive({ session: signInAttempt.createdSessionId });
window._paq.push([
'trackEvent',
'Login',
'User logged in successfully',
data.email
]);
navigate('/');
} else {
console.error(JSON.stringify(signInAttempt, null, 2));
Expand Down
20 changes: 18 additions & 2 deletions src/shared/Sidebar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,15 @@ export default function Sidebar({ onOpenChange }) {

<Button
className="rounded-md border border-foreground-2"
onPress={() => navigate('/subscriptions')}
onPress={() => {
window._paq.push([
'trackEvent',
'Support us',
'Support us button clicked',
''
]);
navigate('/subscriptions');
}}
variant="bordered"
>
Support Us
Expand All @@ -98,7 +106,15 @@ export default function Sidebar({ onOpenChange }) {
className="hover:!text-content1"
color="primary"
fullWidth
onClick={() => navigate('/login')}
onClick={() => {
window._paq.push([
'trackEvent',
'Sign In',
'Sign In button clicked',
''
]);
navigate('/login');
}}
radius="sm"
variant="ghost"
>
Expand Down

0 comments on commit 3ab8ddd

Please sign in to comment.