Skip to content

Commit

Permalink
[ProjectScreen] Replace Grid with Hidden+Stack (#3076)
Browse files Browse the repository at this point in the history
Co-authored-by: Jason Naylor <[email protected]>
  • Loading branch information
imnasnainaec and jasonleenaylor authored Jun 12, 2024
1 parent 960119f commit b75ccd0
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions src/components/ProjectScreen/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Grid } from "@mui/material";
import { Hidden, Stack } from "@mui/material";
import { ReactElement, useEffect } from "react";

import { clearCurrentProject } from "components/Project/ProjectActions";
Expand All @@ -17,15 +17,19 @@ export default function ProjectScreen(): ReactElement {
}, [dispatch]);

return (
<Grid container justifyContent="center" spacing={2}>
<Grid item xs={12} sm={6}>
<Grid container justifyContent="flex-end">
<>
<Hidden smUp>
<Stack alignItems="center" spacing={2}>
<ChooseProject />
</Grid>
</Grid>
<Grid item xs={12} sm={6}>
<CreateProject />
</Grid>
</Grid>
<CreateProject />
</Stack>
</Hidden>
<Hidden smDown>
<Stack direction="row" justifyContent="center" spacing={2}>
<ChooseProject />
<CreateProject />
</Stack>
</Hidden>
</>
);
}

0 comments on commit b75ccd0

Please sign in to comment.