Skip to content

Commit

Permalink
Update BadgeLabel call parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasBuquet committed Feb 4, 2025
1 parent 5709ddb commit 9364788
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions ElementX/Sources/Other/SwiftUI/Views/BadgeLabel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ struct BadgeLabel: View {
var iconSize: CompoundIcon.Size {
switch tchapUsage {
case .none: .xSmall
case .userIsExternal: .xxSmall
case .roomIsEncrypted: .xxSmall
case .roomIsNotEncrypted: .xxSmall
case .roomIsPublic: .xxSmall
case .roomIsAccessibleToExternals: .xxSmall
case .userIsExternal: .xSmall
case .roomIsEncrypted: .xSmall
case .roomIsNotEncrypted: .xSmall
case .roomIsPublic: .xSmall
case .roomIsAccessibleToExternals: .xSmall
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ struct CreateRoomScreen: View {
iconAlignment: .top),
kind: .selection(isSelected: context.isRoomPrivate && !context.isRoomEncrypted) { context.isRoomPrivate = true; context.isRoomEncrypted = false })
ListRow(label: .default(title: TchapL10n.screenCreateRoomPublicOptionTitle,
attributedDescription: warningPublicRoomIsNotOpenToExterns,
attributedDescriptionWhenDisabled: warningPublicRoomIsNotOpenToExterns,
icon: \.public,
iconAlignment: .top),
kind: .selection(isSelected: !context.isRoomPrivate) { context.isRoomPrivate = false })
Expand Down

0 comments on commit 9364788

Please sign in to comment.