Skip to content

Commit

Permalink
[Issue #2635 ] Update banner (#2972)
Browse files Browse the repository at this point in the history
## Summary
Fixes #2635
  • Loading branch information
acouch authored Nov 26, 2024
1 parent 0d82555 commit f43e6e9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions frontend/src/components/BetaAlert.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import FullWidthAlert from "./FullWidthAlert";

const BetaAlert = () => {
const t = useTranslations("Beta_alert");
const heading = t.rich("alert_title", {
const alert = t.rich("alert", {
LinkToGrants: (content) => <a href="https://www.grants.gov">{content}</a>,
});

Expand All @@ -13,8 +13,8 @@ const BetaAlert = () => {
data-testid="beta-alert"
className="desktop:position-sticky top-0 z-200"
>
<FullWidthAlert type="info" heading={heading}>
{t("alert")}
<FullWidthAlert type="info" heading={t("alert_title")}>
{alert}
</FullWidthAlert>
</div>
);
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/i18n/messages/en/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
export const messages = {
Beta_alert: {
alert_title:
"Attention! Go to <LinkToGrants>www.grants.gov</LinkToGrants> to search and apply for grants.",
"This site is a work in progress, with new features and updates based on your feedback.",
alert:
"Simpler.Grants.gov is a work in progress. Thank you for your patience as we build this new website.",
"Search for grants here. To use more advanced features or to apply, go to <LinkToGrants>www.Grants.gov</LinkToGrants>.",
},
OpportunityListing: {
page_title: "Opportunity Listing",
Expand Down
2 changes: 1 addition & 1 deletion frontend/tests/e2e/process.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ test("can view banner and return to top after scrolling to the bottom", async ({

await expect(
page.getByRole("heading", {
name: /Attention! Go to www.grants.gov to search and apply for grants./i,
name: /This site is a work in progress, with new features and updates based on your feedback./i,
}),
).toBeVisible();

Expand Down

0 comments on commit f43e6e9

Please sign in to comment.