Fix lint warnings in NostrClientView

This commit is contained in:
2025-01-22 19:24:06 -05:00
parent 7d63bd5ce4
commit e495d10d92

View File

@@ -30,31 +30,52 @@ struct NostrClientView: View {
List { List {
Toggle( Toggle(
String(localized: "Read your profile", comment: "Permission toggle to allow Nostr client to read your profile."), String(
localized: "Read your profile",
comment: "Permission toggle to allow Nostr client to read your profile."
),
isOn: bindableNostrClientModel.readPublicKeyPermission isOn: bindableNostrClientModel.readPublicKeyPermission
) )
Toggle( Toggle(
String(localized: "Get relays", comment: "Permission toggle to allow Nostr client to get relays."), String(
localized: "Get relays",
comment: "Permission toggle to allow Nostr client to get relays."
),
isOn: bindableNostrClientModel.getRelaysPermission isOn: bindableNostrClientModel.getRelaysPermission
) )
Toggle( Toggle(
String(localized: "Encrypt DMs", comment: "Permission toggle to allow Nostr client to encrypt direct messages."), String(
localized: "Encrypt DMs",
comment: "Permission toggle to allow Nostr client to encrypt direct messages."
),
isOn: bindableNostrClientModel.nip44EncryptPermission isOn: bindableNostrClientModel.nip44EncryptPermission
) )
Toggle( Toggle(
String(localized: "Decrypt DMs", comment: "Permission toggle to allow Nostr client to decrypt direct messages."), String(
localized: "Decrypt DMs",
comment: "Permission toggle to allow Nostr client to decrypt direct messages."
),
isOn: bindableNostrClientModel.nip44DecryptPermission isOn: bindableNostrClientModel.nip44DecryptPermission
) )
Toggle( Toggle(
String(localized: "Encrypt legacy DMs", comment: "Permission toggle to allow Nostr client to encrypt legacy direct messages."), String(
localized: "Encrypt legacy DMs",
comment: "Permission toggle to allow Nostr client to encrypt legacy direct messages."
),
isOn: bindableNostrClientModel.nip04EncryptPermission isOn: bindableNostrClientModel.nip04EncryptPermission
) )
Toggle( Toggle(
String(localized: "Decrypt legacy DMs", comment: "Permission toggle to allow Nostr client to decrypt legacy direct messages."), String(
localized: "Decrypt legacy DMs",
comment: "Permission toggle to allow Nostr client to decrypt legacy direct messages."
),
isOn: bindableNostrClientModel.nip04DecryptPermission isOn: bindableNostrClientModel.nip04DecryptPermission
) )
Toggle( Toggle(
String(localized: "Decrypt zap events", comment: "Permission toggle to allow Nostr client to decrypt zap events."), String(
localized: "Decrypt zap events",
comment: "Permission toggle to allow Nostr client to decrypt zap events."
),
isOn: bindableNostrClientModel.decryptZapEventPermission isOn: bindableNostrClientModel.decryptZapEventPermission
) )