-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add redirect for content staking page
- update subsocial explorer link
- Loading branch information
1 parent
c3462bf
commit 46c608b
Showing
4 changed files
with
19 additions
and
25 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
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
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
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,22 +1,11 @@ | ||
import CreatorsStakingPage from 'src/components/main/CreatorStakingPage' | ||
import { getInitialPropsWithRedux } from 'src/rtk/app/nextHelpers' | ||
import { fetchCreatorsList } from '../../rtk/features/creatorStaking/creatorsList/creatorsListHooks' | ||
import { FETCH_CHIAN_INFO_WITH_PRICES } from 'src/rtk/app/actions' | ||
import { fetchStakingConsts } from '../../rtk/features/creatorStaking/stakingConsts/stakingConstsHooks' | ||
import { redirect } from 'next/navigation' | ||
|
||
getInitialPropsWithRedux(CreatorsStakingPage, async ({ dispatch }) => { | ||
dispatch({ type: FETCH_CHIAN_INFO_WITH_PRICES }) | ||
fetchCreatorsList(dispatch) | ||
fetchStakingConsts(dispatch) | ||
const CreatorsStakingPage = () => { | ||
return <></> | ||
} | ||
|
||
return { | ||
head: { | ||
title: 'Join The Creator Economy On Subsocial', | ||
desc: 'Earn rewards when you post content or engage with others in Subsocial\'s Content Staking system. Lock some SUB to get started today!', | ||
image: '/images/creator-staking/meta-bg.jpg', | ||
forceTitle: true, | ||
}, | ||
} | ||
}) | ||
export const getServerSideProps = () => { | ||
redirect('https://grillapp.net/c/staking') | ||
} | ||
|
||
export default CreatorsStakingPage |