-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix WrapperDiv, Foot, and Navbar (#564)
Fixed bugs associated with WrapperDiv, Footer, and Navbar components
- Loading branch information
Showing
2 changed files
with
29 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,22 @@ | ||
import React from "react"; | ||
import { Box, BoxProps } from "@mui/material"; | ||
|
||
const styles = { | ||
borderRadius: "0.5rem", | ||
width: "100%", | ||
height: "100%", | ||
display: "flex", | ||
flexDirection: "column", | ||
justifyContent: "center", | ||
alignItems: "center", | ||
gap: "1rem", | ||
textAlign: "center", | ||
paddingBottom: 5 | ||
}; | ||
|
||
const CustomCardContent: React.FC<BoxProps> = ({ children }) => { | ||
return <Box sx={styles}>{children}</Box>; | ||
const CustomCardContent: React.FC<{ children: React.ReactNode }> = ({ children }) => { | ||
return ( | ||
<Box | ||
sx={{ | ||
minHeight: "100vh", | ||
display: "flex", | ||
flexDirection: "column", | ||
justifyContent: "flex-start", | ||
alignItems: "center", | ||
width: "100%", | ||
padding: "1rem", | ||
}} | ||
> | ||
{children} | ||
</Box> | ||
); | ||
}; | ||
|
||
export default CustomCardContent; |