mirror of
https://github.com/mosh-hamedani/game-hub.git
synced 2026-05-21 12:14:32 +02:00
Fix the issue with Chakra menus
This commit is contained in:
parent
e54cdbab3e
commit
c64514a5a6
10
src/App.tsx
10
src/App.tsx
|
|
@ -1,4 +1,4 @@
|
|||
import { Grid, GridItem, HStack, Show } from "@chakra-ui/react";
|
||||
import { Box, Flex, Grid, GridItem, HStack, Show } from "@chakra-ui/react";
|
||||
import { useState } from "react";
|
||||
import GameGrid from "./components/GameGrid";
|
||||
import GenreList from "./components/GenreList";
|
||||
|
|
@ -38,10 +38,12 @@ function App() {
|
|||
</GridItem>
|
||||
</Show>
|
||||
<GridItem area="main">
|
||||
<HStack spacing={5} paddingLeft={2} marginBottom={5}>
|
||||
<PlatformSelector selectedPlatform={gameQuery.platform} onSelectPlatform={(platform) => setGameQuery({ ...gameQuery, platform}) } />
|
||||
<Flex paddingLeft={2} marginBottom={5}>
|
||||
<Box marginRight={5}>
|
||||
<PlatformSelector selectedPlatform={gameQuery.platform} onSelectPlatform={(platform) => setGameQuery({ ...gameQuery, platform}) } />
|
||||
</Box>
|
||||
<SortSelector sortOrder={gameQuery.sortOrder} onSelectSortOrder={(sortOrder) => setGameQuery({ ...gameQuery, sortOrder })} />
|
||||
</HStack>
|
||||
</Flex>
|
||||
<GameGrid gameQuery={gameQuery} />
|
||||
</GridItem>
|
||||
</Grid>
|
||||
|
|
|
|||
Loading…
Reference in a new issue