commit 528d1b89b6e34ef39c6c09571b84f39ba48726d3
parent f05cd1b7e6b29ad5fdc387d49320965ca1d87724
Author: William Casarin <jb55@jb55.com>
Date: Tue, 30 Jan 2024 19:02:24 -0800
profile: show subscriber date instead of number
Signed-off-by: William Casarin <jb55@jb55.com>
Diffstat:
2 files changed, 4 insertions(+), 6 deletions(-)
diff --git a/damus/Components/SupporterBadge.swift b/damus/Components/SupporterBadge.swift
@@ -28,11 +28,9 @@ struct SupporterBadge: View {
.resizable()
.frame(width:size, height:size)
.foregroundStyle(GoldGradient)
- if self.style == .full,
- let ordinal_number = self.purple_account?.subscriber_number,
- let ordinal = self.purple_account?.ordinal() {
- Text(ordinal)
- .foregroundStyle(DamusColors.gold)
+ if self.style == .full {
+ Text("\(format_date(date: purple_account.created_at, time_style: .none))")
+ .foregroundStyle(.secondary)
.font(.caption)
}
}
diff --git a/damus/Views/Profile/ProfileName.swift b/damus/Views/Profile/ProfileName.swift
@@ -109,7 +109,7 @@ struct ProfileName: View {
.frame(width: 14, height: 14)
}
- SupporterBadge(percent: supporter(profile: profile), purple_account: self.purple_account, style: .compact)
+ SupporterBadge(percent: supporter(profile: profile), purple_account: self.purple_account, style: .full)
}