Skip to content

Commit

Permalink
Merge pull request #754 from CodeForAfrica/fix/roboshield-ui
Browse files Browse the repository at this point in the history
@/Roboshield fix mobile UI bugs
  • Loading branch information
m453h authored Jul 5, 2024
2 parents 3491ea1 + 5f0e873 commit 62ba7ba
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
4 changes: 2 additions & 2 deletions apps/roboshield/src/components/Hero/Hero.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import RichText from "@/roboshield/components/RichText";
import { Section } from "@commons-ui/core";
import { RichTypography } from "@commons-ui/next";
import { Box, Button, Typography } from "@mui/material";
import React from "react";
import ReactRotatingText from "react-rotating-text";
Expand Down Expand Up @@ -99,7 +98,8 @@ const Hero = (props: PageHero) => {
a: {
textDecoration: "none",
padding: "0.5em",
margin: "0.5em",
margin: { md: "0.5em", xs: "0.75em" },
display: "inline-block",
border: "1px solid",
borderColor: "text.secondary",
},
Expand Down
18 changes: 8 additions & 10 deletions apps/roboshield/src/components/MobileNavBar/MobileNavBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
import { styled } from "@mui/material/styles";
import React, { ForwardedRef } from "react";

import menuIcon from "@/roboshield/assets/icons/menu-icon.svg";
import menuIcon from "@/roboshield/assets/icons/menu-icon.svg?url";
import CloseIcon from "@/roboshield/assets/icons/Type=x, Size=24, Color=CurrentColor.svg";
import NavBarNavList from "@/roboshield/components/NavBarNavList";
import NextImageButton from "@/roboshield/components/NextImageButton";
Expand Down Expand Up @@ -86,15 +86,13 @@ const MobileNavBar = React.forwardRef(function MobileNavBar(
/>
</Grid>
<Grid item>
<IconButton color="inherit" onClick={handleClickOpen} sx={{ p: 0 }}>
<SvgIcon
component={menuIcon}
sx={{
fill: { xs: "none" },
fontSize: 24,
}}
/>
</IconButton>
<NextImageButton
src={menuIcon}
alt="menu icon"
onClick={handleClickOpen}
width={32}
height={32}
/>
<DialogContainer
fullScreen
onClose={handleClose}
Expand Down

0 comments on commit 62ba7ba

Please sign in to comment.