-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FFT-159 Refactor payroll endpoints into one (#594)
- Loading branch information
1 parent
63912f3
commit 7d0f230
Showing
8 changed files
with
188 additions
and
245 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,26 @@ | ||
export default function ErrorSummary({ errors }) { | ||
return ( | ||
<div | ||
className="govuk-error-summary" | ||
aria-labelledby="error-summary-title" | ||
role="alert" | ||
tabIndex="-1" | ||
data-module="govuk-error-summary" | ||
> | ||
<h2 className="govuk-error-summary__title" id="error-summary-title"> | ||
There is a problem | ||
</h2> | ||
<div className="govuk-error-summary__body"> | ||
<ul className="govuk-list govuk-error-summary__list"> | ||
{errors.map((error) => { | ||
return ( | ||
<li key={error.label}> | ||
<a href={`#${error.label}`}>{error.message}</a> | ||
</li> | ||
); | ||
})} | ||
</ul> | ||
</div> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
export default function SuccessBanner() { | ||
return ( | ||
<div className="govuk-notification-banner govuk-notification-banner--success"> | ||
<div className="govuk-notification-banner__header"> | ||
<h2 | ||
className="govuk-notification-banner__title" | ||
id="govuk-notification-banner-title" | ||
> | ||
Success | ||
</h2> | ||
</div> | ||
</div> | ||
); | ||
} |
Oops, something went wrong.