Skip to content

Commit

Permalink
temp remove stack
Browse files Browse the repository at this point in the history
  • Loading branch information
ametel01 committed Jan 22, 2024
1 parent 02107f8 commit 5386754
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/frontend/src/panels/UniverseViewTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -123,7 +123,7 @@ export const UniverseViewTabPanel = ({
}: UniverseViewTabPanelProps) => {
const [planetsData, setPlanetsData] = useState<PlanetDetails[]>([]);
const [currentPage, setCurrentPage] = useState(1);
const [isExtendedView, setIsExtendedView] = useState(false);
const [isExtendedView] = useState(false);
const itemsPerPage = 6;
const pageCount = isExtendedView
? 10
Expand Down Expand Up @@ -198,14 +198,14 @@ export const UniverseViewTabPanel = ({

return (
<StyledTabPanel {...rest}>
<Stack direction="row" justifyContent="center" spacing={2}>
{/* <Stack direction="row" justifyContent="center" spacing={2}>
<Typography>Normal View</Typography>
<Switch
checked={isExtendedView}
onChange={(e) => setIsExtendedView(e.target.checked)}
/>
<Typography>Extended View</Typography>
</Stack>
</Stack> */}
{isExtendedView
? renderPlanets()
: selectedPlanets.map((planet, index) => (
Expand Down

0 comments on commit 5386754

Please sign in to comment.