generated from cfpb/open-source-project-template
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #287 from cfpb/meissadia/institution-not-found-war…
…ning [Filing] Institution Not Found Warning
- Loading branch information
Showing
7 changed files
with
108 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export default function receiveInstitutionNotFound({ lei }) { | ||
return { | ||
type: "RECEIVE_INSTITUTION_NOT_FOUND", | ||
lei | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
import React from "react" | ||
import Alert from "../../common/Alert.jsx" | ||
|
||
export const MissingInstitutionsBanner = ({ leis = [] }) => { | ||
const hasMissingLeis = leis.length > 0 | ||
const bannerType = hasMissingLeis ? "warning" : "info" | ||
|
||
return ( | ||
<Alert | ||
heading="Missing an institution?" | ||
type={bannerType} | ||
headingType="small" | ||
> | ||
<div> | ||
<MissingLeiList leis={leis} /> | ||
<p> | ||
If any {hasMissingLeis ? "other" : ""} institutions are missing, | ||
please access{" "} | ||
<a href="https://hmdahelp.consumerfinance.gov/accounthelp/"> | ||
this form | ||
</a>{" "} | ||
and enter the necessary information, including your institution's LEI, | ||
which is required in order to access the HMDA Platform. We will apply | ||
the update to your account. Please check back one day after submitting | ||
your information. | ||
</p> | ||
</div> | ||
</Alert> | ||
) | ||
} | ||
|
||
export const MissingLeiList = ({ leis = [] }) => { | ||
if(leis.length < 1) return null | ||
|
||
return ( | ||
<div className="missing-leis"> | ||
<p> | ||
The following institutions are associated with your profile, but not for | ||
the currently selected year: | ||
</p> | ||
<ul> | ||
{leis.map((lei, key) => ( | ||
<li key={key}>{lei}</li> | ||
))} | ||
</ul> | ||
<p> | ||
To associate one or more of these institutions, please contact{" "} | ||
<a | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
href="mailto:[email protected]" | ||
> | ||
HMDA Help | ||
</a> | ||
. | ||
</p> | ||
</div> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters