Skip to content

Commit

Permalink
Merge pull request #1814 from hackforla/1783-update-styling
Browse files Browse the repository at this point in the history
Use sx props for styling
  • Loading branch information
jenny-alexander authored Sep 28, 2023
2 parents 1f0824d + fcdb666 commit 76ca6ab
Showing 1 changed file with 5 additions and 21 deletions.
26 changes: 5 additions & 21 deletions client/src/components/FoodSeeker/SearchResults/layouts/Tablet.js
Original file line number Diff line number Diff line change
@@ -1,30 +1,14 @@
import React from "react";
import makeStyles from "@mui/styles/makeStyles";

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

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

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

0 comments on commit 76ca6ab

Please sign in to comment.