Skip to content

Commit

Permalink
Fix grid structure
Browse files Browse the repository at this point in the history
  • Loading branch information
kacan98 committed Apr 14, 2024
1 parent 507300f commit 00a4558
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Box, Grid, ThemeProvider } from "@mui/material";
import { Box, ThemeProvider } from "@mui/material";
import customTheme from "./theme.ts";
import PaperWrapper from "./components/paper.tsx";
import CalculatorInputs from "./components/calculatorInputs.tsx";
Expand All @@ -10,6 +10,7 @@ import { RootState } from "../store";
import { useSelector } from "react-redux";
import { useState } from "react";
import { SettingsDialog } from "./components/settingsDialog.tsx";
import Grid2 from "@mui/material/Unstable_Grid2";

function App() {
const [settingsOpen, setSettingsOpen] = useState(false);
Expand All @@ -25,7 +26,7 @@ function App() {
backgroundColor: "#e3dede",
}}
>
<Grid
<Grid2
container
spacing={2}
justifyContent={"center"}
Expand All @@ -34,20 +35,20 @@ function App() {
margin: "0 auto",
}}
>
<Grid item xs={12}>
<Grid2 xs={12}>
<PaperWrapper>
<IntroBlock />
</PaperWrapper>
</Grid>
<Grid item sm={12} lg={8}>
</Grid2>
<Grid2 sm={12} lg={8}>
<CalculatorInputs />
</Grid>
<Grid item sm={12} lg={4}>
</Grid2>
<Grid2 sm={12} lg={4}>
<PaperWrapper>
<Result />
</PaperWrapper>
</Grid>
<Grid item sm={12} mt={0}>
</Grid2>
<Grid2 sm={12} mt={0}>
<Button
fullWidth
sx={{ mb: 2 }}
Expand All @@ -57,8 +58,8 @@ function App() {
>
Settings
</Button>
</Grid>
</Grid>
</Grid2>
</Grid2>
</Box>
)}

Expand Down

0 comments on commit 00a4558

Please sign in to comment.