diff --git a/src/components/Buttons/UniversalAuth/index.tsx b/src/components/Buttons/UniversalAuth/index.tsx index 240451af61..5c9770a8b8 100644 --- a/src/components/Buttons/UniversalAuth/index.tsx +++ b/src/components/Buttons/UniversalAuth/index.tsx @@ -1,11 +1,15 @@ import React from 'react' -import { CLOSE_ACTIVE_DIALOG, OPEN_UNIVERSAL_AUTH_DIALOG } from '~/common/enums' -import { analytics } from '~/common/utils' -import { Button, TextIcon, Translate } from '~/components' +import { + CLOSE_ACTIVE_DIALOG, + OPEN_UNIVERSAL_AUTH_DIALOG, + PATHS, +} from '~/common/enums' +import { analytics, appendTarget } from '~/common/utils' +import { Button, Media, TextIcon, Translate } from '~/components' export const UniversalAuthButton: React.FC = () => { - const props = { + const smUpProps = { onClick: () => { analytics.trackEvent('click_button', { type: 'login/signup', @@ -15,6 +19,15 @@ export const UniversalAuthButton: React.FC = () => { }, } + const smProps = { + ...appendTarget(PATHS.LOGIN, true), + onClick: () => { + analytics.trackEvent('click_button', { + type: 'login/signup', + }) + }, + } + const ButtonText = () => ( @@ -23,9 +36,17 @@ export const UniversalAuthButton: React.FC = () => { return ( <> - + + + + + + + ) }