-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
13a6859
commit 75bff2b
Showing
4 changed files
with
23 additions
and
1,376 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,25 @@ | ||
import { RewardsScreen } from 'app/features/account/rewards/activity/screen' | ||
import { ActivityRewardsScreen } from 'app/features/account/rewards/activity/screen' | ||
import Head from 'next/head' | ||
import { userProtectedGetSSP } from 'utils/userProtected' | ||
import type { NextPageWithLayout } from 'next-app/pages/_app' | ||
import { HomeLayout } from 'app/features/home/layout.web' | ||
import { ButtonOption, TopNav } from 'app/components/TopNav' | ||
import { TopNav } from 'app/components/TopNav' | ||
|
||
export const Page: NextPageWithLayout = () => { | ||
return ( | ||
<> | ||
<Head> | ||
<title>Send | Send Rewards</title> | ||
<title>Send | Activity Rewards</title> | ||
</Head> | ||
<RewardsScreen /> | ||
<ActivityRewardsScreen /> | ||
</> | ||
) | ||
} | ||
|
||
export const getServerSideProps = userProtectedGetSSP() | ||
|
||
const subheader = | ||
'Register at least 1 Sendtag, maintain the minimum balance, avoid selling, and refer others for a bonus multiplier. ' | ||
|
||
Page.getLayout = (children) => ( | ||
<HomeLayout | ||
$platform-web={{ | ||
h: '100svh', | ||
contentContainerStyle: { | ||
h: '100svh', | ||
}, | ||
}} | ||
TopNav={ | ||
<TopNav header="Send Rewards" showLogo subheader={subheader} button={ButtonOption.PROFILE} /> | ||
} | ||
> | ||
{children} | ||
</HomeLayout> | ||
<HomeLayout TopNav={<TopNav header="Activity Rewards" showLogo />}>{children}</HomeLayout> | ||
) | ||
|
||
export default Page |
Oops, something went wrong.