Skip to content

Commit

Permalink
fix lint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
pengyin-shan committed May 4, 2023
1 parent 0f79dea commit e387e16
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/components/LandingPageMap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,11 @@ const MapChart = ({ setTooltipContent, title }) => {
>
<Box>
<Typography sx={{ color: "#2F7164" }}>{stateCodes[cur.id]}</Typography>
(title === "Supplemental Nutrition Assistance Program (SNAP)" ?{" "}
<Typography sx={{ color: "#2F7164" }}>Total Cost</Typography>:
<Typography sx={{ color: "#2F7164" }}>Total Benefit</Typography>)
{title === "Supplemental Nutrition Assistance Program (SNAP)" ? (
<Typography sx={{ color: "#2F7164" }}>Total Cost</Typography>
) : (
<Typography sx={{ color: "#2F7164" }}>Total Benefit</Typography>
)}
<Typography sx={{ color: "#3F3F3F" }}>
$
{Number(total / 1000000.0).toLocaleString(undefined, {
Expand Down
3 changes: 3 additions & 0 deletions src/pages/SNAPPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,9 @@ export default function SNAPPage(): JSX.Element {
pb: 5
}}
>
<Box sx={{ display: "flex", justifyContent: "center" }}>
<CardMedia sx={{ maxWidth: 720, mt: 3 }} component="img" src={snap} />
</Box>
<div id="landingPageMapContainer">
<LandingPageMap programTitle="Supplemental Nutrition Assistance Program (SNAP)" />
</div>
Expand Down

0 comments on commit e387e16

Please sign in to comment.