@@ -11,8 +11,9 @@ import { type InternationalisedPolicy, type Terms, type MatrixClient } from "mat
11
11
import { AuthType , type AuthDict , type IInputs , type IStageStatus } from "matrix-js-sdk/src/interactive-auth" ;
12
12
import { logger } from "matrix-js-sdk/src/logger" ;
13
13
import React , { type JSX , type ChangeEvent , createRef , type FormEvent , Fragment } from "react" ;
14
- import { Button , Text } from "@vector-im/compound-web" ;
14
+ import { Button } from "@vector-im/compound-web" ;
15
15
import PopOutIcon from "@vector-im/compound-design-tokens/assets/web/icons/pop-out" ;
16
+ import UserProfileSolidIcon from "@vector-im/compound-design-tokens/assets/web/icons/user-profile-solid" ;
16
17
17
18
import EmailPromptIcon from "../../../../res/img/element-icons/email-prompt.svg" ;
18
19
import { _t } from "../../../languageHandler" ;
@@ -21,8 +22,9 @@ import AccessibleButton, { type AccessibleButtonKind, type ButtonEvent } from ".
21
22
import Field from "../elements/Field" ;
22
23
import Spinner from "../elements/Spinner" ;
23
24
import CaptchaForm from "./CaptchaForm" ;
24
- import { Flex } from "../../utils/Flex" ;
25
25
import { pickBestPolicyLanguage } from "../../../Terms.ts" ;
26
+ import { EncryptionCardButtons } from "../settings/encryption/EncryptionCardButtons.tsx" ;
27
+ import { EncryptionCard } from "../settings/encryption/EncryptionCard.tsx" ;
26
28
27
29
/* This file contains a collection of components which are used by the
28
30
* InteractiveAuth to prompt the user to enter the information needed
@@ -971,9 +973,14 @@ export class MasUnlockCrossSigningAuthEntry extends FallbackAuthEntry<{
971
973
972
974
public render ( ) : React . ReactNode {
973
975
return (
974
- < div >
975
- < Text > { _t ( "auth|uia|mas_cross_signing_reset_description" ) } </ Text >
976
- < Flex gap = "var(--cpd-space-4x)" >
976
+ < EncryptionCard
977
+ Icon = { UserProfileSolidIcon }
978
+ title = { _t ( "auth|uia|mas_cross_signing_reset_title" ) }
979
+ description = { _t ( "auth|uia|mas_cross_signing_reset_description" , {
980
+ serverName : this . props . matrixClient . getDomain ( ) ,
981
+ } ) }
982
+ >
983
+ < EncryptionCardButtons >
977
984
< Button
978
985
Icon = { PopOutIcon }
979
986
onClick = { this . onGoToAccountClick }
@@ -983,11 +990,11 @@ export class MasUnlockCrossSigningAuthEntry extends FallbackAuthEntry<{
983
990
>
984
991
{ _t ( "auth|uia|mas_cross_signing_reset_cta" ) }
985
992
</ Button >
986
- < Button onClick = { this . onRetryClick } kind = "secondary " className = "mx_Dialog_nonDialogButton" >
993
+ < Button onClick = { this . onRetryClick } kind = "tertiary " className = "mx_Dialog_nonDialogButton" >
987
994
{ _t ( "action|retry" ) }
988
995
</ Button >
989
- </ Flex >
990
- </ div >
996
+ </ EncryptionCardButtons >
997
+ </ EncryptionCard >
991
998
) ;
992
999
}
993
1000
}
0 commit comments