From f669566c17d9712904af6eb0edc2587f51d3a952 Mon Sep 17 00:00:00 2001 From: Mehdi Torabi <46302001+mehdi-torabiv@users.noreply.github.com> Date: Wed, 11 Dec 2024 12:10:33 +0300 Subject: [PATCH] Fix/conflicts (#362) * update announcements * replace Tctext * update oci * update url * update * fix * remove --------- Co-authored-by: Cyrille <1618640+cyri113@users.noreply.github.com> --- src/pages/not-found.tsx | 68 ---------------------------- src/pages/reputation-score/score.tsx | 4 +- 2 files changed, 2 insertions(+), 70 deletions(-) delete mode 100644 src/pages/not-found.tsx diff --git a/src/pages/not-found.tsx b/src/pages/not-found.tsx deleted file mode 100644 index bb7eba4..0000000 --- a/src/pages/not-found.tsx +++ /dev/null @@ -1,68 +0,0 @@ -import Image from 'next/image'; -import { useRouter } from 'next/router'; - -import notFounded from '../assets/svg/404.svg'; -import tcLogo from '../assets/svg/tc-logo.svg'; -import TcButton from '../components/shared/TcButton'; - -const NotFound = () => { - const router = useRouter(); - - return ( -
-
- Image Alt -
-
-
- Image Alt -
-
-

- Oops! We’re sorry, we couldn’t find
the page you’re looking - for. -

-
-

What could have caused this?

-
-

- The link you clicked might be old and does not work anymore. -

-

- Or you might have accidentally typed the wrong URL in the - address bar. -

-
-
-
-

What you can do

-

- You might retype the URL or try some helpful links instead: -

-
-
- router.push('/')} - className='py-2 md:w-1/2' - /> - router.push('/centric')} - variant='outlined' - text='Connect your community' - className='py-2 md:w-1/2' - /> -
-
-
-
- ); -}; - -export default NotFound; diff --git a/src/pages/reputation-score/score.tsx b/src/pages/reputation-score/score.tsx index 80dd6ff..ae42513 100644 --- a/src/pages/reputation-score/score.tsx +++ b/src/pages/reputation-score/score.tsx @@ -11,6 +11,7 @@ import TcBoxContainer from '@/components/shared/TcBox/TcBoxContainer'; import useAppStore from '@/store/useStore'; import { useSnackbar } from '@/context/SnackbarContext'; +import { withRoles } from '@/utils/withRoles'; const ScorePage = () => { const { showMessage } = useSnackbar(); @@ -39,7 +40,6 @@ const ScorePage = () => { } }; - // Use URLSearchParams to extract query parameters const params = new URLSearchParams(window.location.search); const tokenId = params.get('tokenId'); const address = params.get('address'); @@ -177,4 +177,4 @@ const ScorePage = () => { ); }; -export default ScorePage; +export default withRoles(ScorePage, []);