From 528d1b89b6e34ef39c6c09571b84f39ba48726d3 Mon Sep 17 00:00:00 2001 From: William Casarin Date: Tue, 30 Jan 2024 19:02:24 -0800 Subject: [PATCH] profile: show subscriber date instead of number Signed-off-by: William Casarin --- damus/Components/SupporterBadge.swift | 8 +++----- damus/Views/Profile/ProfileName.swift | 2 +- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/damus/Components/SupporterBadge.swift b/damus/Components/SupporterBadge.swift index 808a736f..280f6c58 100644 --- 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 index 97076898..0a2fa826 100644 --- 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) }