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
|
|
@ -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 { useState } from "react";
|
||||||
import GameGrid from "./components/GameGrid";
|
import GameGrid from "./components/GameGrid";
|
||||||
import GenreList from "./components/GenreList";
|
import GenreList from "./components/GenreList";
|
||||||
|
|
@ -38,10 +38,12 @@ function App() {
|
||||||
</GridItem>
|
</GridItem>
|
||||||
</Show>
|
</Show>
|
||||||
<GridItem area="main">
|
<GridItem area="main">
|
||||||
<HStack spacing={5} paddingLeft={2} marginBottom={5}>
|
<Flex paddingLeft={2} marginBottom={5}>
|
||||||
|
<Box marginRight={5}>
|
||||||
<PlatformSelector selectedPlatform={gameQuery.platform} onSelectPlatform={(platform) => setGameQuery({ ...gameQuery, platform}) } />
|
<PlatformSelector selectedPlatform={gameQuery.platform} onSelectPlatform={(platform) => setGameQuery({ ...gameQuery, platform}) } />
|
||||||
|
</Box>
|
||||||
<SortSelector sortOrder={gameQuery.sortOrder} onSelectSortOrder={(sortOrder) => setGameQuery({ ...gameQuery, sortOrder })} />
|
<SortSelector sortOrder={gameQuery.sortOrder} onSelectSortOrder={(sortOrder) => setGameQuery({ ...gameQuery, sortOrder })} />
|
||||||
</HStack>
|
</Flex>
|
||||||
<GameGrid gameQuery={gameQuery} />
|
<GameGrid gameQuery={gameQuery} />
|
||||||
</GridItem>
|
</GridItem>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue