diff --git a/next.config.js b/next.config.js index 7db2b1d..dfd7606 100644 --- a/next.config.js +++ b/next.config.js @@ -18,6 +18,17 @@ const nextConfig = { return config }, + + async redirects() { + return [ + { + source: '/creators', + destination: 'https://grillapp.net/c/staking', + permanent: false, + }, + ] + }, + images: { remotePatterns: [ { diff --git a/src/components/txHistory/transactions/Transfer.tsx b/src/components/txHistory/transactions/Transfer.tsx index 3e501a3..7e507c0 100644 --- a/src/components/txHistory/transactions/Transfer.tsx +++ b/src/components/txHistory/transactions/Transfer.tsx @@ -37,7 +37,7 @@ const subscanLinksByNetwork: Record = { astar: 'https://astar.subscan.io/extrinsic/', moonbeam: 'https://moonbeam.subscan.io/extrinsic/', moonriver: 'https://moonriver.subscan.io/extrinsic/', - subsocial: 'https://calamar.app/search?network=subsocial&query=', + subsocial: 'https://polkaholic.io/tx/', } type TransferRowProps = { diff --git a/src/layout/SideMenuItems.tsx b/src/layout/SideMenuItems.tsx index a933c31..3ea17d2 100644 --- a/src/layout/SideMenuItems.tsx +++ b/src/layout/SideMenuItems.tsx @@ -150,12 +150,6 @@ export const DefaultMenu = (t: any, isAllNetworksConnected: boolean) => { items: validatorStakingItems.filter(isDef), hidden: isMulti || !isSignIn, }, - { - name: 'Content Staking', - page: [ '/creators' ], - icon: , - hidden: !isSignIn, - }, Divider, { name: t('general.networkStatus'), diff --git a/src/pages/creators/index.tsx b/src/pages/creators/index.tsx index 99d4655..8d2897c 100644 --- a/src/pages/creators/index.tsx +++ b/src/pages/creators/index.tsx @@ -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