@@ -8,7 +8,6 @@ import { withAuthenticatedPage } from "lib/withAuthenticatedPage";
8
8
import { useParams } from "next/navigation" ;
9
9
import { useState } from "react" ;
10
10
import { Team } from "generatedApi" ;
11
- import { useLaunchDarkly } from "hooks/useLaunchDarkly" ;
12
11
import { useApplyReferralCode } from "api/referrals" ;
13
12
import { useProfile } from "api/profile" ;
14
13
@@ -26,16 +25,31 @@ function RedeemReferralCodePage() {
26
25
27
26
const applyReferralCode = useApplyReferralCode ( selectedTeam ?. id ) ;
28
27
29
- const { referralsPage } = useLaunchDarkly ( ) ;
30
- if ( ! referralsPage ) {
31
- void router . push ( "/404" ) ;
32
- return null ;
33
- }
28
+ const title = "Someone thinks you’re a good fit for Convex!" ;
29
+ const description = "Get Convex resources for free with this referral code." ;
30
+ const ogImage = "https://www.convex.dev/og_image.png" ;
34
31
35
32
return (
36
33
< div className = "h-screen" >
37
34
< Head >
38
- < title > Redeem Referral Code | Convex Dashboard</ title >
35
+ < title > { title } </ title >
36
+ < meta name = "description" content = { description } />
37
+
38
+ < meta property = "og:title" content = { title } />
39
+ < meta property = "og:description" content = { description } />
40
+
41
+ < meta property = "og:type" content = "website" />
42
+ < meta property = "og:site_name" content = "Convex" />
43
+ < meta
44
+ property = "og:url"
45
+ content = { `https://dashboard.convex.dev/referral/${ code } ` }
46
+ />
47
+ < meta property = "og:image" content = { ogImage } />
48
+
49
+ < meta name = "twitter:card" content = "summary_large_image" />
50
+ < meta name = "twitter:title" content = { title } />
51
+ < meta name = "twitter:description" content = { description } />
52
+ < meta name = "twitter:image" content = { ogImage } />
39
53
</ Head >
40
54
< LoginLayout >
41
55
< RedeemReferralForm
0 commit comments