Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions src/components/ui/incident-banner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,9 @@ export function IncidentBanner({ className }: IncidentBannerProps) {

<div className="flex-1 min-w-0 pr-6">
<p className="font-bold text-foreground text-base sm:text-lg leading-tight">
Your Gnosis Pay card is back up and running.
{affected && hasPreHackBalance
? "Your Gnosis Pay card is coming back."
: "Your Gnosis Pay card is back up and running."}
</p>

{!affected && hasPreHackBalance && (
Expand All @@ -95,9 +97,14 @@ export function IncidentBanner({ className }: IncidentBannerProps) {
)}

{affected && hasPreHackBalance && (
<p className="mt-2 text-sm sm:text-base text-foreground leading-snug">
We've restored your balance and issued you a new Gnosis Pay Safe. Your previous Safe is no longer secure. Do not use your old Safe address again: anything you send there will be lost.
</p>
<>
<p className="mt-1 text-sm sm:text-base text-foreground leading-snug">
We've issued you a new Gnosis Pay Safe because your previous Safe is no longer secure. Do not use your old Safe address again: anything you send there will be lost.
</p>
<p className="mt-1 text-sm sm:text-base text-foreground leading-snug">
Funds are now being restored and will appear on your balance by EOD Sunday, June 7th.
</p>
</>
)}

{affected && !hasPreHackBalance && (
Expand Down
6 changes: 4 additions & 2 deletions tests/banners.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,10 @@ test.describe("Incident banner - 4 cases", () => {
await setupBannerTest(page, OLD_SAFE_AFFECTED_WITH_BALANCE);
const banner = page.getByTestId("incident-notice-banner");
await expect(banner).toBeVisible();
await expect(banner).toContainText("Your Gnosis Pay card is back up and running.");
await expect(banner).toContainText("We've restored your balance");
await expect(banner).toContainText("Your Gnosis Pay card is coming back.");
await expect(banner).toContainText(
"Funds are now being restored and will appear on your balance by EOD Sunday, June 7th.",
);
await expect(banner).toContainText("Do not use your old Safe address again");
});

Expand Down
Loading