Skip to content

Commit 71b5a55

Browse files
committed
Fix the cross signing reset cancel and error screens
1 parent affb1bf commit 71b5a55

File tree

3 files changed

+82
-41
lines changed

3 files changed

+82
-41
lines changed

frontend/src/routes/reset-cross-signing.cancelled.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export const Route = createFileRoute("/reset-cross-signing/cancelled")({
1717
<PageHeading
1818
Icon={IconKeyOffSolid}
1919
title={t("frontend.reset_cross_signing.cancelled.heading")}
20-
success
20+
invalid
2121
/>
2222
<Text className="text-center text-secondary" size="lg">
2323
{t("frontend.reset_cross_signing.cancelled.description_1")}

frontend/src/routes/reset-cross-signing.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ function ResetCrossSigningError({
3939
}: ErrorComponentProps): React.ReactElement {
4040
const { t } = useTranslation();
4141
return (
42-
<>
42+
<Layout>
4343
<PageHeading
4444
Icon={IconError}
4545
title={t("frontend.reset_cross_signing.failure.heading")}
@@ -53,6 +53,6 @@ function ResetCrossSigningError({
5353
<Button kind="tertiary" size="lg" onClick={() => reset()}>
5454
{t("action.back")}
5555
</Button>
56-
</>
56+
</Layout>
5757
);
5858
}

frontend/tests/routes/__snapshots__/reset-cross-signing.test.tsx.snap

Lines changed: 79 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ exports[`Reset cross signing > renders the cancelled page 1`] = `
1212
class="_pageHeading_c10486"
1313
>
1414
<div
15-
class="_icon_c10486 _success_c10486"
15+
class="_icon_c10486 _invalid_c10486"
1616
>
1717
<svg
1818
fill="currentColor"
@@ -239,48 +239,89 @@ exports[`Reset cross signing > renders the deep link page 1`] = `
239239

240240
exports[`Reset cross signing > renders the errored page 1`] = `
241241
<DocumentFragment>
242-
<header
243-
class="_pageHeading_c10486"
242+
<div
243+
class="_layoutContainer_0c8bf9"
244244
>
245-
<div
246-
class="_icon_c10486 _invalid_c10486"
245+
<header
246+
class="_pageHeading_c10486"
247247
>
248-
<svg
249-
fill="currentColor"
250-
height="1em"
251-
viewBox="0 0 24 24"
252-
width="1em"
253-
xmlns="http://www.w3.org/2000/svg"
248+
<div
249+
class="_icon_c10486 _invalid_c10486"
254250
>
255-
<path
256-
d="M12 17a.97.97 0 0 0 .713-.288A.968.968 0 0 0 13 16a.968.968 0 0 0-.287-.713A.968.968 0 0 0 12 15a.968.968 0 0 0-.713.287A.968.968 0 0 0 11 16c0 .283.096.52.287.712.192.192.43.288.713.288Zm0-4c.283 0 .52-.096.713-.287A.968.968 0 0 0 13 12V8a.967.967 0 0 0-.287-.713A.968.968 0 0 0 12 7a.968.968 0 0 0-.713.287A.967.967 0 0 0 11 8v4c0 .283.096.52.287.713.192.191.43.287.713.287Zm0 9a9.738 9.738 0 0 1-3.9-.788 10.099 10.099 0 0 1-3.175-2.137c-.9-.9-1.612-1.958-2.137-3.175A9.738 9.738 0 0 1 2 12a9.74 9.74 0 0 1 .788-3.9 10.099 10.099 0 0 1 2.137-3.175c.9-.9 1.958-1.612 3.175-2.137A9.738 9.738 0 0 1 12 2a9.74 9.74 0 0 1 3.9.788 10.098 10.098 0 0 1 3.175 2.137c.9.9 1.613 1.958 2.137 3.175A9.738 9.738 0 0 1 22 12a9.738 9.738 0 0 1-.788 3.9 10.098 10.098 0 0 1-2.137 3.175c-.9.9-1.958 1.613-3.175 2.137A9.738 9.738 0 0 1 12 22Z"
257-
/>
258-
</svg>
259-
</div>
260-
<div
261-
class="_header_c10486"
251+
<svg
252+
fill="currentColor"
253+
height="1em"
254+
viewBox="0 0 24 24"
255+
width="1em"
256+
xmlns="http://www.w3.org/2000/svg"
257+
>
258+
<path
259+
d="M12 17a.97.97 0 0 0 .713-.288A.968.968 0 0 0 13 16a.968.968 0 0 0-.287-.713A.968.968 0 0 0 12 15a.968.968 0 0 0-.713.287A.968.968 0 0 0 11 16c0 .283.096.52.287.712.192.192.43.288.713.288Zm0-4c.283 0 .52-.096.713-.287A.968.968 0 0 0 13 12V8a.967.967 0 0 0-.287-.713A.968.968 0 0 0 12 7a.968.968 0 0 0-.713.287A.967.967 0 0 0 11 8v4c0 .283.096.52.287.713.192.191.43.287.713.287Zm0 9a9.738 9.738 0 0 1-3.9-.788 10.099 10.099 0 0 1-3.175-2.137c-.9-.9-1.612-1.958-2.137-3.175A9.738 9.738 0 0 1 2 12a9.74 9.74 0 0 1 .788-3.9 10.099 10.099 0 0 1 2.137-3.175c.9-.9 1.958-1.612 3.175-2.137A9.738 9.738 0 0 1 12 2a9.74 9.74 0 0 1 3.9.788 10.098 10.098 0 0 1 3.175 2.137c.9.9 1.613 1.958 2.137 3.175A9.738 9.738 0 0 1 22 12a9.738 9.738 0 0 1-.788 3.9 10.098 10.098 0 0 1-2.137 3.175c-.9.9-1.958 1.613-3.175 2.137A9.738 9.738 0 0 1 12 22Z"
260+
/>
261+
</svg>
262+
</div>
263+
<div
264+
class="_header_c10486"
265+
>
266+
<h1
267+
class="_title_c10486"
268+
>
269+
Failed to allow crypto identity reset
270+
</h1>
271+
</div>
272+
</header>
273+
<p
274+
class="_typography_yh5dq_162 _font-body-md-regular_yh5dq_59 text-center text-secondary"
275+
>
276+
This might be a temporary problem, so please try again later. If the problem persists, please contact your server administrator.
277+
</p>
278+
<button
279+
class="_button_i91xf_17"
280+
data-kind="tertiary"
281+
data-size="lg"
282+
role="button"
283+
tabindex="0"
284+
>
285+
Back
286+
</button>
287+
<footer
288+
class="_legalFooter_eb428f"
262289
>
263-
<h1
264-
class="_title_c10486"
290+
<nav>
291+
<a
292+
class="_link_ue21z_17"
293+
data-kind="primary"
294+
data-size="medium"
295+
href="https://matrix.org/policy"
296+
rel="noreferrer noopener"
297+
title="Link to the service privacy policy"
298+
>
299+
Privacy Policy
300+
</a>
301+
<div
302+
aria-hidden="true"
303+
class="_separator_eb428f"
304+
>
305+
306+
</div>
307+
<a
308+
class="_link_ue21z_17"
309+
data-kind="primary"
310+
data-size="medium"
311+
href="https://matrix.org/tos"
312+
rel="noreferrer noopener"
313+
title="Link to the service terms and conditions"
314+
>
315+
Terms & Conditions
316+
</a>
317+
</nav>
318+
<p
319+
class="_imprint_eb428f"
265320
>
266-
Failed to allow crypto identity reset
267-
</h1>
268-
</div>
269-
</header>
270-
<p
271-
class="_typography_yh5dq_162 _font-body-md-regular_yh5dq_59 text-center text-secondary"
272-
>
273-
This might be a temporary problem, so please try again later. If the problem persists, please contact your server administrator.
274-
</p>
275-
<button
276-
class="_button_i91xf_17"
277-
data-kind="tertiary"
278-
data-size="lg"
279-
role="button"
280-
tabindex="0"
281-
>
282-
Back
283-
</button>
321+
All Rights Reserved. The Super Chat name, logo and device are registered trade marks of BigCorp Ltd.
322+
</p>
323+
</footer>
324+
</div>
284325
</DocumentFragment>
285326
`;
286327

0 commit comments

Comments
 (0)