adjust feature flag

This commit is contained in:
MarconLP 2024-11-25 17:00:54 +01:00
parent 637290706a
commit ea4927a329
No known key found for this signature in database
GPG key ID: A08A9C8B623F5EA5

View file

@ -25,7 +25,7 @@ const Home: NextPage = () => {
const posthog = usePostHog();
const session = useSession();
const router = useRouter();
const showDemoButton = useFeatureFlagEnabled('show-demo-button')
const showDemoButton = useFeatureFlagEnabled("show-demo-button");
useEffect(() => {
if (session.status === "authenticated" && !recordModalOpen) {
@ -88,7 +88,6 @@ const Home: NextPage = () => {
<span className="text-xs">(no account required)</span>
</button>
<div className="flex flex-col gap-6 sm:flex-row">
{showDemoButton ? (
<a
onClick={() =>
posthog?.capture("clicked watch recorded demo demo")
@ -99,22 +98,24 @@ const Home: NextPage = () => {
>
Watch recorded demo <span aria-hidden="true"></span>
</a>
) : null}
{showDemoButton ? (
<a
onClick={() => posthog?.capture("clicked schedule demo")}
target="_blank"
href="https://cal.com/marcon/snapify-demo"
className="text-sm font-semibold leading-6"
>
Schedule personalized demo <span aria-hidden="true"></span>
Schedule personalized demo{" "}
<span aria-hidden="true"></span>
</a>
) : null}
</div>
</div>
</div>
</div>
<div
className={`flex w-full items-center justify-center border-t pt-6 flex`}
className={`flex flex w-full items-center justify-center border-t pt-6`}
>
<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">
{[
@ -122,15 +123,13 @@ const Home: NextPage = () => {
name: "Peer Richelsen",
role: "CEO @ Cal.com",
text: "snapify.it is mega",
profilePicture:
"/peer-profile.jpeg",
profilePicture: "/peer-profile.jpeg",
},
{
name: "Mish Ushakov",
role: "CTO @ StepCI",
text: "A godsend",
profilePicture:
"/mish-profile.jpeg",
profilePicture: "/mish-profile.jpeg",
},
].map(({ name, role, text, profilePicture }) => (
<div key={name} className="gap-2 text-center">