diff --git a/src/app/settings/page.tsx b/src/app/settings/page.tsx index 5f16edf..b07703b 100644 --- a/src/app/settings/page.tsx +++ b/src/app/settings/page.tsx @@ -10,7 +10,6 @@ import { GB, TB, filesize } from '@/lib' import DefaultLoader from '@/components/Loader' import { RefcodeLink, ReferralsList, RefcodeCreator } from '../referrals/page' import { useReferrals } from '@/lib/referrals/hooks' -import { useSearchParams } from 'next/navigation' const Plans: Record<`did:${string}`, { name: string, limit: number }> = { 'did:web:starter.web3.storage': { name: 'Starter', limit: 5 * GB }, @@ -75,43 +74,37 @@ export default function SettingsPage (): JSX.Element { // TODO: need to calculate these from the referral information that gets added during the TBD cronjob const credits = 0 const points = 0 - const params = useSearchParams() - const referralsEnabled = (params.get('referrals') === 'enabled') return ( <>

Settings

- {referralsEnabled && ( - <> -

Rewards

-
-
-

Referred

- {referred} / {MAX_REFERRALS} -
-
-

USD Credits

- {credits} / {MAX_CREDITS} -
-
-

Racha Points

- {points} -
-
-
- - {referralLink ? ( - - ) : ( - )} -
- - )} +

Rewards

+
+
+

Referred

+ {referred} / {MAX_REFERRALS} +
+
+

USD Credits

+ {credits} / {MAX_CREDITS} +
+
+

Racha Points

+ {points} +
+
+
+ + {referralLink ? ( + + ) : ( + )} +

Plan