({
background: "transparent",
},
"& .MuiDialogContent-root": {
- padding: spacing(2),
+ padding: spacing(5),
color: palette.text.secondary,
background: palette.primary.main,
},
@@ -74,7 +81,7 @@ const MobileNavBar = React.forwardRef(function MobileNavBar(props, ref) {
id="mobile-navbar-dialog"
sx={{
m: 0,
- p: 2,
+ p: 0,
display: "flex",
color: "inherit",
justifyContent: "space-between",
@@ -82,18 +89,20 @@ const MobileNavBar = React.forwardRef(function MobileNavBar(props, ref) {
}}
onClose={handleClose}
>
-
-
+
+
+
diff --git a/apps/codeforafrica/src/components/NavBarNavList/NavBarNavList.js b/apps/codeforafrica/src/components/NavBarNavList/NavBarNavList.js
index 26690d473..d475cfc43 100644
--- a/apps/codeforafrica/src/components/NavBarNavList/NavBarNavList.js
+++ b/apps/codeforafrica/src/components/NavBarNavList/NavBarNavList.js
@@ -22,7 +22,7 @@ const platformToIconMap = {
};
const NavBarNavList = React.forwardRef(function NavBarNavList(props, ref) {
- const { direction, menus, socialLinks, ...other } = props;
+ const { NavListItemProps, direction, menus, socialLinks, ...other } = props;
if (!menus?.length) {
return null;
@@ -30,18 +30,27 @@ const NavBarNavList = React.forwardRef(function NavBarNavList(props, ref) {
return (
{menus.map((item) => (
-
+
{item.label}
@@ -54,13 +63,21 @@ const NavBarNavList = React.forwardRef(function NavBarNavList(props, ref) {
return null;
}
return (
-
-
+
+
@@ -72,6 +89,7 @@ const NavBarNavList = React.forwardRef(function NavBarNavList(props, ref) {
});
NavBarNavList.propTypes = {
+ NavListItemProps: PropTypes.shape({}),
direction: PropTypes.string,
menus: PropTypes.arrayOf(
PropTypes.shape({
@@ -82,6 +100,7 @@ NavBarNavList.propTypes = {
};
NavBarNavList.defaultProps = {
+ NavListItemProps: undefined,
direction: undefined,
menus: undefined,
};
diff --git a/apps/codeforafrica/src/components/NavBarNavList/NavBarNavList.snap.js b/apps/codeforafrica/src/components/NavBarNavList/NavBarNavList.snap.js
index 04f92734f..f8a76af77 100644
--- a/apps/codeforafrica/src/components/NavBarNavList/NavBarNavList.snap.js
+++ b/apps/codeforafrica/src/components/NavBarNavList/NavBarNavList.snap.js
@@ -6,84 +6,84 @@ exports[` renders unchanged 1`] = `
class="css-f15emd"
>
Our Work
About
Stories
Opportunity
Contact
diff --git a/apps/codeforafrica/src/components/OpportunityCardList/OpportunityCardList.snap.js b/apps/codeforafrica/src/components/OpportunityCardList/OpportunityCardList.snap.js
index 79c901736..e11a2e414 100644
--- a/apps/codeforafrica/src/components/OpportunityCardList/OpportunityCardList.snap.js
+++ b/apps/codeforafrica/src/components/OpportunityCardList/OpportunityCardList.snap.js
@@ -30,7 +30,7 @@ exports[` renders unchanged 1`] = `
class="MuiBox-root css-k008qs"
>
Data Journalism