From 64084f6c47b9300e2501f4909d56938072a394a9 Mon Sep 17 00:00:00 2001 From: Mark Paul Date: Thu, 8 Aug 2024 10:20:38 +1000 Subject: [PATCH] chore: fix code review issues --- package.json | 4 ++-- src/components/Layout/Navbar.tsx | 3 --- src/pages/GamerPassport/GamerPassport.tsx | 8 ++++---- 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/package.json b/package.json index 3daf1e8d..28cea642 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "explorer-dapp", "description": "Itheum Explorer is a DApp for the public to explore and visualize data within the Itheum protocol", - "version": "1.20.6", + "version": "1.20.0", "author": "Itheum", "license": "GPL-3.0-or-later", "dependencies": { @@ -57,7 +57,7 @@ "react-slick": "0.30.2", "react-vertical-timeline-component": "3.6.0", "react-zoom-pan-pinch": "3.4.4", - "recharts": "^2.12.7", + "recharts": "2.12.7", "simplex-noise": "4.0.1", "slick-carousel": "1.8.1", "tailwind-merge": "2.3.0", diff --git a/src/components/Layout/Navbar.tsx b/src/components/Layout/Navbar.tsx index c10e329e..0f14eb9a 100644 --- a/src/components/Layout/Navbar.tsx +++ b/src/components/Layout/Navbar.tsx @@ -32,7 +32,6 @@ import { } from "../../libComponents/NavigationMenu"; import { useAccountStore } from "../../store/account"; import { BitzDropdown } from "../BitzShortcuts/BitzShortcuts"; -// import { PathwaysModal } from "../PathwaysModal/PathwaysModal"; import { PlayBitzModal } from "../PlayBitzModal/PlayBitzModal"; export const Navbar = () => { @@ -42,8 +41,6 @@ export const Navbar = () => { const isLoggedInMvx = useGetIsLoggedIn(); const { address: addressMvx } = useGetAccount(); const bitzBalance = useAccountStore((state: any) => state.bitzBalance); - - // const [showPathwaysModel, setShowPathwaysModel] = useState(false); const [showPlayBitzModel, setShowPlayBitzModel] = useState(false); return ( diff --git a/src/pages/GamerPassport/GamerPassport.tsx b/src/pages/GamerPassport/GamerPassport.tsx index 74ae1d69..6af8e200 100644 --- a/src/pages/GamerPassport/GamerPassport.tsx +++ b/src/pages/GamerPassport/GamerPassport.tsx @@ -52,10 +52,10 @@ export const GamerPassport = () => { const [step3Passed, setStep3Passed] = useState(false); useEffect(() => { - // window.scrollTo({ - // top: 0, - // behavior: "smooth", - // }); + window.scrollTo({ + top: 0, + behavior: "smooth", + }); async function getDataAndInitGraphData() { const dataAggregated = await getAggregatedAnalyticsData();