Update verify identity button title. (#3466)

This commit is contained in:
Doug
2024-10-30 16:36:51 +00:00
committed by GitHub
parent 368226fd57
commit 6f158264fa
18 changed files with 29 additions and 34 deletions
@@ -32,10 +32,6 @@ struct UserProfileScreenViewState: BindableState {
var showVerificationSection: Bool {
isVerified == false && !isOwnUser
}
var verifyButtonTitle: String {
L10n.screenRoomMemberDetailsVerifyButtonTitle(userProfile?.displayName ?? "")
}
}
struct UserProfileScreenViewStateBindings {
@@ -83,7 +83,7 @@ struct UserProfileScreen: View {
var verificationSection: some View {
if context.viewState.showVerificationSection {
Section {
ListRow(label: .default(title: context.viewState.verifyButtonTitle,
ListRow(label: .default(title: L10n.commonVerifyIdentity,
description: L10n.screenRoomMemberDetailsVerifyButtonSubtitle,
icon: \.lock),
kind: .button { })