From 46c608baf269cb5051e30c7e5ff640164185aab0 Mon Sep 17 00:00:00 2001 From: Sam Date: Tue, 12 Mar 2024 12:50:23 +0200 Subject: [PATCH] Add redirect for content staking page - update subsocial explorer link --- next.config.js | 11 ++++++++ .../txHistory/transactions/Transfer.tsx | 2 +- src/layout/SideMenuItems.tsx | 6 ----- src/pages/creators/index.tsx | 25 ++++++------------- 4 files changed, 19 insertions(+), 25 deletions(-) diff --git a/next.config.js b/next.config.js index 7db2b1d8..dfd76068 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 3e501a31..7e507c08 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 a933c31f..3ea17d2f 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 99d4655c..8d2897c9 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