Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
634750802 committed Sep 4, 2024
1 parent 04bdf38 commit bb9f237
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions web/src/pages/github-campaign/_components/ClaimForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,14 @@ function Checking () {
}

function ClaimedThisSession ({ check }: { check: Check }) {
const { user } = useResponsiveAuth0();

return (
<>
{successIcon}
<ClaimContent>
Hi <em>{user?.nickname ?? user?.name}</em>
<br />
Successfully claimed {check.credits} credits, you can go to
<br />
TiDB Cloud to check it out and use it.
Expand All @@ -112,11 +116,16 @@ function ClaimedThisSession ({ check }: { check: Check }) {
}

function Claimed () {
const { user } = useResponsiveAuth0();

return (
<>
{successIcon}
<ClaimContent>
Hi <em>{user?.nickname ?? user?.name}</em>
<br />
You&#39;ve already participated in this campaign. Thanks for being an open-source hero.
<br />
Ready to build something amazing?
</ClaimContent>
<Button sx={{ mt: 2, px: 8 }} color="primary" variant="outlined">Start Building with TiDB Cloud!</Button>
Expand Down Expand Up @@ -145,11 +154,16 @@ function NotEligible ({ tenants }: { tenants: Tenant[] }) {
}

function NotEligibleNoTenant () {
const { user } = useResponsiveAuth0();

return (
<>
{badIcon}
<ClaimContent>
Hi <em>{user?.nickname ?? user?.name}</em>
<br />
Want to try TiDB Serverless for free?
<br />
Create a new TiDB Cloud account and enjoy 25GB of free storage to start building your applications.
</ClaimContent>
<Button sx={{ mt: 2, px: 8 }} color="primary" variant="outlined">Create TiDB Cloud Account</Button>
Expand Down

0 comments on commit bb9f237

Please sign in to comment.