Skip to content

Commit

Permalink
Merge pull request #114 from policy-design-lab/may_9_csp_release
Browse files Browse the repository at this point in the history
May 9 csp release
  • Loading branch information
pengyin-shan authored May 10, 2023
2 parents ff1a793 + 9c2a1a8 commit 91bafe9
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 20 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [Unreleased]
## [0.4.0] - 2023-05-10

### Added
- SNAP page and connected to SNAP API Point [#59](https://github.com/policy-design-lab/pdl-frontend/issues/59)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "policy-design-lab",
"version": "0.3.0",
"version": "0.4.0",
"description": "the front end of policy design lab",
"repository": "https://github.com/policy-design-lab/pdl-frontend",
"main": "src/app.tsx",
Expand Down
35 changes: 18 additions & 17 deletions src/components/LandingDisplay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,25 +110,26 @@ export default function LandingDisplay({ programTitle }: { programTitle: string
boldText = "What is Farm Bill?";
bodyText =
"The Supplemental Nutrition Assistance Program [SNAP] provides financial assistance to low-income families to help cover the cost of food. Benefits can only be used to purchase food products and are provided in electronic format similar to a credit card and known as the Electronic Benefit Transfer (EBT) card. The map shows the total SNAP costs of the nutrition title by state from 2018-2022.";
route = "/";
route = "/snap";
buttonText = "Explore Maps of SNAP";
button = (
<Button
variant="contained"
sx={{
bgcolor: "#2F7164",
minWidth: 400,
minHeight: 80,
borderRadius: 0
}}
disableElevation
onClick={handleAlertOpen}
>
<Typography variant="subtitle1">
<strong>{buttonText}</strong>
</Typography>{" "}
<ArrowForwardIcon sx={{ mx: 2 }} />
</Button>
<Link to="/snap">
<Button
variant="contained"
sx={{
bgcolor: "#2F7164",
minWidth: 400,
minHeight: 80,
borderRadius: 0
}}
disableElevation
>
<Typography variant="subtitle1">
<strong>{buttonText}</strong>
</Typography>{" "}
<ArrowForwardIcon sx={{ mx: 2 }} />
</Button>
</Link>
);
break;
case "All Programs":
Expand Down
2 changes: 1 addition & 1 deletion src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default function Main(): JSX.Element {
<Route path="/" element={<LandingPage />} />
<Route path="/eqip" element={<EQIPPage />} />
<Route path="/csp" element={<CSPPage />} />
{/* <Route path="/snap" element={<SNAPPage />} /> */}
<Route path="/snap" element={<SNAPPage />} />
</Routes>
</ScrollToTop>
);
Expand Down

0 comments on commit 91bafe9

Please sign in to comment.