Skip to content

Commit

Permalink
chore: add capeture event to tg notis link
Browse files Browse the repository at this point in the history
  • Loading branch information
chambaz committed Sep 30, 2024
1 parent 20072e9 commit 8105c4e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion apps/marginfi-v2-ui/src/components/common/Navbar/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import { useFirebaseAccount } from "~/hooks/useFirebaseAccount";
import { useWallet } from "~/components/wallet-v2/hooks/use-wallet.hook";
import { useConnection } from "~/hooks/use-connection";
import { useIsMobile } from "~/hooks/useIsMobile";
import { capture } from "~/utils/analytics";

import { EMISSION_MINT_INFO_MAP } from "~/components/desktop/AssetList/components";
import { Popover, PopoverContent, PopoverTrigger } from "~/components/ui/popover";
Expand Down Expand Up @@ -198,7 +199,14 @@ export const Navbar: FC = () => {
Sign up for real time notifications with Asgardfi's telegram watchbot.
</p>
</div>
<Link href="https://t.me/AsgardWatchBot" target="_blank" rel="noopener noreferrer">
<Link
href="https://t.me/AsgardWatchBot"
target="_blank"
rel="noopener noreferrer"
onClick={() => {
capture("asgard_watchbot_clicked");
}}
>
<Button variant="secondary" size="sm">
<IconBrandTelegram size={18} /> Open in Telegram
</Button>
Expand Down

0 comments on commit 8105c4e

Please sign in to comment.