Skip to content

Commit

Permalink
Merge pull request #14 from IuliiaSam/links
Browse files Browse the repository at this point in the history
Added a link to a button
  • Loading branch information
bdougsand authored Jan 15, 2025
2 parents 2d9a983 + 3d8061f commit 43a050e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/EligiblePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ const EligiblePage: React.FC<Props> = () => {
<li>Your mobile phone</li>
</ul>
<div className='elig-button-wrapper'>
<a href="https://app.loanspq.com/xa/xpressApp.aspx?enc=Kw21Wblm1yxpjJabdoZaD-Gr_IHl-C8fchODgpSxXjXxSPGFrEl4jSeBYt4aHlqZ_hVg_J5c4ST0o0u4NRrvqXWvff49QjYj346K93kVe7U">
<button className='elig-button' type='button'>{'Join Today! >'}</button>
</a>
<a href='https://harvardfcu.org/membership/join/' className='elig-a'>Learn More About Memberships</a>
</div>
</>
Expand Down
2 changes: 2 additions & 0 deletions src/SearchPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ const SearchPage: React.FC<Props> = (props: Props) => {
try {
// Retrieve geocoding data for the given address
const censusApiResponse = await geocode({ address });
// console.log('matchedAddress', censusApiResponse.result.addressMatches[0].matchedAddress);

// Find out if address is eligible and update the page state
// TO-DO: refactor into a function (see Use My Location)
const addressIsEligible = !!(censusApiResponse && findEligibleAddress(censusApiResponse));
Expand Down

0 comments on commit 43a050e

Please sign in to comment.