Skip to content

Commit ea4927a

Browse files
committed
adjust feature flag
1 parent 6372907 commit ea4927a

File tree

1 file changed

+20
-21
lines changed

1 file changed

+20
-21
lines changed

src/pages/index.tsx

Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const Home: NextPage = () => {
2525
const posthog = usePostHog();
2626
const session = useSession();
2727
const router = useRouter();
28-
const showDemoButton = useFeatureFlagEnabled('show-demo-button')
28+
const showDemoButton = useFeatureFlagEnabled("show-demo-button");
2929

3030
useEffect(() => {
3131
if (session.status === "authenticated" && !recordModalOpen) {
@@ -88,49 +88,48 @@ const Home: NextPage = () => {
8888
<span className="text-xs">(no account required)</span>
8989
</button>
9090
<div className="flex flex-col gap-6 sm:flex-row">
91-
{showDemoButton ? (
92-
<a
93-
onClick={() =>
94-
posthog?.capture("clicked watch recorded demo demo")
95-
}
96-
target="_blank"
97-
href="https://snapify.it/share/clk3mpgnu0003mj0f042964wg"
98-
className="text-sm font-semibold leading-6"
99-
>
100-
Watch recorded demo <span aria-hidden="true"></span>
101-
</a>
102-
) : null}
10391
<a
104-
onClick={() => posthog?.capture("clicked schedule demo")}
92+
onClick={() =>
93+
posthog?.capture("clicked watch recorded demo demo")
94+
}
10595
target="_blank"
106-
href="https://cal.com/marcon/snapify-demo"
96+
href="https://snapify.it/share/clk3mpgnu0003mj0f042964wg"
10797
className="text-sm font-semibold leading-6"
10898
>
109-
Schedule personalized demo <span aria-hidden="true"></span>
99+
Watch recorded demo <span aria-hidden="true"></span>
110100
</a>
101+
{showDemoButton ? (
102+
<a
103+
onClick={() => posthog?.capture("clicked schedule demo")}
104+
target="_blank"
105+
href="https://cal.com/marcon/snapify-demo"
106+
className="text-sm font-semibold leading-6"
107+
>
108+
Schedule personalized demo{" "}
109+
<span aria-hidden="true"></span>
110+
</a>
111+
) : null}
111112
</div>
112113
</div>
113114
</div>
114115
</div>
115116

116117
<div
117-
className={`flex w-full items-center justify-center border-t pt-6 flex`}
118+
className={`flex flex w-full items-center justify-center border-t pt-6`}
118119
>
119120
<div className="flex max-w-2xl flex-1 flex-col items-center justify-between gap-y-10 py-4 lg:h-[140px] lg:flex-row">
120121
{[
121122
{
122123
name: "Peer Richelsen",
123124
role: "CEO @ Cal.com",
124125
text: "snapify.it is mega",
125-
profilePicture:
126-
"/peer-profile.jpeg",
126+
profilePicture: "/peer-profile.jpeg",
127127
},
128128
{
129129
name: "Mish Ushakov",
130130
role: "CTO @ StepCI",
131131
text: "A godsend",
132-
profilePicture:
133-
"/mish-profile.jpeg",
132+
profilePicture: "/mish-profile.jpeg",
134133
},
135134
].map(({ name, role, text, profilePicture }) => (
136135
<div key={name} className="gap-2 text-center">

0 commit comments

Comments
 (0)