patch settings
This commit is contained in:
parent
42e9e4984a
commit
cacb25d34a
@ -167,7 +167,7 @@ struct SettingsView: View {
|
||||
avatar: messengerAvatar(for: profile),
|
||||
displayName: messengerDisplayName(for: profile),
|
||||
presenceStatus: nil,
|
||||
statusTags: [],
|
||||
statusTags: messengerStatusTags(for: profile),
|
||||
isOfficial: self.messengerProfile?.isVerified ?? false
|
||||
)
|
||||
.listRowInsets(EdgeInsets(top: 16, leading: 0, bottom: 8, trailing: 0))
|
||||
@ -273,8 +273,8 @@ struct SettingsView: View {
|
||||
return "@\(profile.login)"
|
||||
}
|
||||
|
||||
// private func messengerStatusTags(for profile: ProfileDataPayload) -> [ProfileHeaderCardView.StatusTag] {
|
||||
// var tags: [ProfileHeaderCardView.StatusTag] = []
|
||||
private func messengerStatusTags(for profile: ProfileDataPayload) -> [ProfileHeaderCardView.StatusTag] {
|
||||
var tags: [ProfileHeaderCardView.StatusTag] = []
|
||||
// tags.append(
|
||||
// ProfileHeaderCardView.StatusTag(
|
||||
// icon: "at",
|
||||
@ -283,7 +283,7 @@ struct SettingsView: View {
|
||||
// tint: .white
|
||||
// )
|
||||
// )
|
||||
//
|
||||
|
||||
// if let createdAt = profile.createdAt {
|
||||
// let formatted = SettingsView.membershipFormatter.string(from: createdAt)
|
||||
// tags.append(
|
||||
@ -298,9 +298,20 @@ struct SettingsView: View {
|
||||
// )
|
||||
// )
|
||||
// }
|
||||
//
|
||||
// return tags
|
||||
// }
|
||||
|
||||
if profile.isVerified {
|
||||
tags.append(
|
||||
ProfileHeaderCardView.StatusTag(
|
||||
icon: "checkmark.seal.fill",
|
||||
text: NSLocalizedString("Подтверждённый профиль", comment: "Message profile verified tag"),
|
||||
background: Color.white.opacity(0.18),
|
||||
tint: .white
|
||||
)
|
||||
)
|
||||
}
|
||||
|
||||
return tags
|
||||
}
|
||||
|
||||
private func themeRow(for option: ThemeOption) -> some View {
|
||||
let isSelected = option == selectedThemeOption
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user