-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(docs): replace va by posthog (#4123)
- Loading branch information
Showing
27 changed files
with
280 additions
and
149 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,28 @@ | ||
"use client"; | ||
|
||
import {Button, Link} from "@nextui-org/react"; | ||
import {usePostHog} from "posthog-js/react"; | ||
|
||
import {trackEvent} from "@/utils/va"; | ||
export const FigmaButton = () => { | ||
const posthog = usePostHog(); | ||
|
||
export const FigmaButton = () => ( | ||
<Button | ||
isExternal | ||
showAnchorIcon | ||
as={Link} | ||
className="max-w-fit text-current" | ||
color="default" | ||
href="https://www.figma.com/community/file/1267584376234254760" | ||
variant="bordered" | ||
onPress={() => { | ||
trackEvent("FigmaPage - Open Figma Link", { | ||
action: "click", | ||
category: "figma", | ||
}); | ||
}} | ||
> | ||
Open in Figma | ||
</Button> | ||
); | ||
return ( | ||
<Button | ||
isExternal | ||
showAnchorIcon | ||
as={Link} | ||
className="max-w-fit text-current" | ||
color="default" | ||
href="https://www.figma.com/community/file/1267584376234254760" | ||
variant="bordered" | ||
onPress={() => { | ||
posthog.capture("FigmaPage - Open Figma Link", { | ||
action: "click", | ||
category: "figma", | ||
}); | ||
}} | ||
> | ||
Open in Figma | ||
</Button> | ||
); | ||
}; |
Oops, something went wrong.