Skip to content

Commit

Permalink
Use sx props when styling Desktop.js (#1829)
Browse files Browse the repository at this point in the history
  • Loading branch information
jenny-alexander authored Oct 3, 2023
1 parent 1b4d05e commit 3bed830
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions client/src/components/FoodSeeker/SearchResults/layouts/Desktop.js
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
import React from "react";
import makeStyles from "@mui/styles/makeStyles";

const useStyles = makeStyles((theme) => ({
container: {
flex: "auto",
overflowY: "hidden",
display: "flex",
},
list: {
width: "35%",
overflow: "auto",
},
map: {
height: "100%",
flex: 1,
},
}));
import { Box } from "@mui/material";

const DesktopLayout = ({ filters, list, map }) => {
const classes = useStyles();

return (
<>
{filters}
<div className={classes.container}>
<div className={classes.list}>{list}</div>
<div className={classes.map}>{map}</div>
</div>
<Box
sx={{
flex: "auto",
overflowY: "hidden",
display: "flex",
}}>
<Box
sx={{
width: "35%",
overflow: "auto",
}}>
{list}
</Box>
<Box
sx={{
height: "100%",
flex: 1,
}}>
{map}
</Box>
</Box>
</>
);
};
Expand Down

0 comments on commit 3bed830

Please sign in to comment.