File tree 1 file changed +13
-10
lines changed
1 file changed +13
-10
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ const Home: NextPage = () => {
25
25
const posthog = usePostHog ( ) ;
26
26
const session = useSession ( ) ;
27
27
const router = useRouter ( ) ;
28
+ const showDemoButton = useFeatureFlagEnabled ( 'show-demo-button' )
28
29
29
30
useEffect ( ( ) => {
30
31
if ( session . status === "authenticated" && ! recordModalOpen ) {
@@ -87,16 +88,18 @@ const Home: NextPage = () => {
87
88
< span className = "text-xs" > (no account required)</ span >
88
89
</ button >
89
90
< 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 }
100
103
< a
101
104
onClick = { ( ) => posthog ?. capture ( "clicked schedule demo" ) }
102
105
target = "_blank"
You can’t perform that action at this time.
0 commit comments