put demo button behind feature flag
This commit is contained in:
parent
06c40d53c6
commit
99706bab99
1 changed files with 13 additions and 10 deletions
|
|
@ -25,6 +25,7 @@ const Home: NextPage = () => {
|
||||||
const posthog = usePostHog();
|
const posthog = usePostHog();
|
||||||
const session = useSession();
|
const session = useSession();
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
|
const showDemoButton = useFeatureFlagEnabled('show-demo-button')
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (session.status === "authenticated" && !recordModalOpen) {
|
if (session.status === "authenticated" && !recordModalOpen) {
|
||||||
|
|
@ -87,16 +88,18 @@ const Home: NextPage = () => {
|
||||||
<span className="text-xs">(no account required)</span>
|
<span className="text-xs">(no account required)</span>
|
||||||
</button>
|
</button>
|
||||||
<div className="flex flex-col gap-6 sm:flex-row">
|
<div className="flex flex-col gap-6 sm:flex-row">
|
||||||
<a
|
{showDemoButton ? (
|
||||||
onClick={() =>
|
<a
|
||||||
posthog?.capture("clicked watch recorded demo demo")
|
onClick={() =>
|
||||||
}
|
posthog?.capture("clicked watch recorded demo demo")
|
||||||
target="_blank"
|
}
|
||||||
href="https://snapify.it/share/clk3mpgnu0003mj0f042964wg"
|
target="_blank"
|
||||||
className="text-sm font-semibold leading-6"
|
href="https://snapify.it/share/clk3mpgnu0003mj0f042964wg"
|
||||||
>
|
className="text-sm font-semibold leading-6"
|
||||||
Watch recorded demo <span aria-hidden="true">→</span>
|
>
|
||||||
</a>
|
Watch recorded demo <span aria-hidden="true">→</span>
|
||||||
|
</a>
|
||||||
|
) : null}
|
||||||
<a
|
<a
|
||||||
onClick={() => posthog?.capture("clicked schedule demo")}
|
onClick={() => posthog?.capture("clicked schedule demo")}
|
||||||
target="_blank"
|
target="_blank"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue