fix(radar): use a reliable activation icon

This commit is contained in:
diegosouzapw
2026-09-01 16:38:48 -03:00
parent 0fd637c9ca
commit 83f230aa33
2 changed files with 11 additions and 1 deletions

View File

@@ -392,7 +392,12 @@ export default function RadarPage() {
{pageState === "optin_pending" && (
<Card>
<div className="mx-auto flex max-w-5xl flex-col items-center gap-6 py-8 text-center">
<div className="text-4xl">📡</div>
<span
aria-hidden="true"
className="material-symbols-outlined text-4xl text-violet-400"
>
radar
</span>
<h2 className="text-xl font-semibold">{t("activateTitle")}</h2>
<p className="max-w-2xl text-text-muted">{t("activateDescription")}</p>

View File

@@ -104,6 +104,11 @@ describe("Radar opt-in page", () => {
expect(notFoundMock).not.toHaveBeenCalled();
expect(container.textContent).toContain("activateTitle");
expect(container.textContent).toContain("activateButton");
const activationIcon = container.querySelector(
'span.material-symbols-outlined[aria-hidden="true"]'
);
expect(activationIcon?.textContent).toBe("radar");
expect(container.textContent).not.toContain("📡");
});
it("shows the complete access and privacy explanation before every activation action", async () => {