File tree Expand file tree Collapse file tree 1 file changed +13
-10
lines changed
Expand file tree Collapse file tree 1 file changed +13
-10
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ const Home: NextPage = () => {
2525 const posthog = usePostHog ( ) ;
2626 const session = useSession ( ) ;
2727 const router = useRouter ( ) ;
28+ const showDemoButton = useFeatureFlagEnabled ( 'show-demo-button' )
2829
2930 useEffect ( ( ) => {
3031 if ( session . status === "authenticated" && ! recordModalOpen ) {
@@ -87,16 +88,18 @@ const Home: NextPage = () => {
8788 < span className = "text-xs" > (no account required)</ span >
8889 </ button >
8990 < div className = "flex flex-col gap-6 sm:flex-row" >
90- < a
91- onClick = { ( ) =>
92- posthog ?. capture ( "clicked watch recorded demo demo" )
93- }
94- target = "_blank"
95- href = "https://snapify.it/share/clk3mpgnu0003mj0f042964wg"
96- className = "text-sm font-semibold leading-6"
97- >
98- Watch recorded demo < span aria-hidden = "true" > →</ span >
99- </ a >
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 }
100103 < a
101104 onClick = { ( ) => posthog ?. capture ( "clicked schedule demo" ) }
102105 target = "_blank"
You can’t perform that action at this time.
0 commit comments