From 5386754d2a58af150f4c0e112fba48185061561d Mon Sep 17 00:00:00 2001 From: Alex Metelli Date: Mon, 22 Jan 2024 22:50:21 +0800 Subject: [PATCH] temp remove stack --- packages/frontend/src/panels/UniverseViewTab.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/frontend/src/panels/UniverseViewTab.tsx b/packages/frontend/src/panels/UniverseViewTab.tsx index b7a78e6..9200ec8 100644 --- a/packages/frontend/src/panels/UniverseViewTab.tsx +++ b/packages/frontend/src/panels/UniverseViewTab.tsx @@ -21,7 +21,7 @@ import { Pagination, } from '.'; import { useGetColonyMotherPlanet } from '../hooks/ColoniesHooks'; -import { Switch, Typography } from '@mui/material'; +// import { Switch, Typography } from '@mui/material'; const UniverseBoxItem = ({ ownPlanetId, planet, ownTechs }: UniverseProps) => { const { address: address_data } = useAccount(); @@ -123,7 +123,7 @@ export const UniverseViewTabPanel = ({ }: UniverseViewTabPanelProps) => { const [planetsData, setPlanetsData] = useState([]); const [currentPage, setCurrentPage] = useState(1); - const [isExtendedView, setIsExtendedView] = useState(false); + const [isExtendedView] = useState(false); const itemsPerPage = 6; const pageCount = isExtendedView ? 10 @@ -198,14 +198,14 @@ export const UniverseViewTabPanel = ({ return ( - + {/* Normal View setIsExtendedView(e.target.checked)} /> Extended View - + */} {isExtendedView ? renderPlanets() : selectedPlanets.map((planet, index) => (