diff --git a/package-lock.json b/package-lock.json index 7db2c043d..2792c032d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -19,6 +19,7 @@ "@mui/material": "^5.12.2", "@mui/styled-engine-sc": "^5.12.0", "@mui/system": "^5.12.1", + "@mui/utils": "^5.14.18", "@mui/x-data-grid": "^6.16.2", "@mui/x-date-pickers": "^6.5.0", "@tanstack/react-query": "^4.32.0", @@ -3627,11 +3628,12 @@ } }, "node_modules/@mui/utils": { - "version": "5.14.16", - "license": "MIT", + "version": "5.14.18", + "resolved": "https://registry.npmjs.org/@mui/utils/-/utils-5.14.18.tgz", + "integrity": "sha512-HZDRsJtEZ7WMSnrHV9uwScGze4wM/Y+u6pDVo+grUjt5yXzn+wI8QX/JwTHh9YSw/WpnUL80mJJjgCnWj2VrzQ==", "dependencies": { "@babel/runtime": "^7.23.2", - "@types/prop-types": "^15.7.9", + "@types/prop-types": "^15.7.10", "prop-types": "^15.8.1", "react-is": "^18.2.0" }, @@ -4561,8 +4563,9 @@ "license": "MIT" }, "node_modules/@types/prop-types": { - "version": "15.7.9", - "license": "MIT" + "version": "15.7.11", + "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.11.tgz", + "integrity": "sha512-ga8y9v9uyeiLdpKddhxYQkxNDrfvuPrlFb0N1qnZZByvcElJaXthF1UhvCh9TLWJBEHeNtdnbysW7Y6Uq8CVng==" }, "node_modules/@types/proper-lockfile": { "version": "4.1.3", @@ -17233,10 +17236,12 @@ "requires": {} }, "@mui/utils": { - "version": "5.14.16", + "version": "5.14.18", + "resolved": "https://registry.npmjs.org/@mui/utils/-/utils-5.14.18.tgz", + "integrity": "sha512-HZDRsJtEZ7WMSnrHV9uwScGze4wM/Y+u6pDVo+grUjt5yXzn+wI8QX/JwTHh9YSw/WpnUL80mJJjgCnWj2VrzQ==", "requires": { "@babel/runtime": "^7.23.2", - "@types/prop-types": "^15.7.9", + "@types/prop-types": "^15.7.10", "prop-types": "^15.8.1", "react-is": "^18.2.0" } @@ -17882,7 +17887,9 @@ "version": "4.0.1" }, "@types/prop-types": { - "version": "15.7.9" + "version": "15.7.11", + "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.11.tgz", + "integrity": "sha512-ga8y9v9uyeiLdpKddhxYQkxNDrfvuPrlFb0N1qnZZByvcElJaXthF1UhvCh9TLWJBEHeNtdnbysW7Y6Uq8CVng==" }, "@types/proper-lockfile": { "version": "4.1.3", diff --git a/package.json b/package.json index 7eb904907..8d4994950 100644 --- a/package.json +++ b/package.json @@ -35,6 +35,7 @@ "@mui/material": "^5.12.2", "@mui/styled-engine-sc": "^5.12.0", "@mui/system": "^5.12.1", + "@mui/utils": "^5.14.18", "@mui/x-data-grid": "^6.16.2", "@mui/x-date-pickers": "^6.5.0", "@tanstack/react-query": "^4.32.0", diff --git a/src/components/Home/HomeSection.jsx b/src/components/Home/HomeSection.jsx index 1b98cf41c..a8eeff803 100644 --- a/src/components/Home/HomeSection.jsx +++ b/src/components/Home/HomeSection.jsx @@ -2,14 +2,15 @@ import React from 'react'; // Material UI Imports import Box from '@mui/material/Box'; -import Typography from '@mui/material/Typography'; import Button from '@mui/material/Button'; +import Stack from '@mui/material/Stack'; +import Typography from '@mui/material/Typography'; /** * Represents a home section component * * @memberof Home - * @name HomeSecton + * @name HomeSection * @param {object} Props - the component props * @param {string} Props.componentImageSrc - image src * @param {string} Props.componentImageAlt - image alt @@ -19,6 +20,7 @@ import Button from '@mui/material/Button'; * @param {string} Props.href - section button href * @param {string} Props.label - section button aria-label * @param {boolean} Props.isReallySmallScreen - screen size + * @param {boolean} Props.hasMargin - gives marginBottom * @returns {React.JSX.Element} - the home section component */ const HomeSection = ({ @@ -29,9 +31,10 @@ const HomeSection = ({ button, href, label, - isReallySmallScreen + isReallySmallScreen, + hasMargin }) => ( - <> + {title} - - {description} - + {description && ( + + {description} + + )} {button && (