profile: show subscriber date instead of number

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2024-01-30 19:02:24 -08:00
parent f05cd1b7e6
commit 528d1b89b6
2 changed files with 4 additions and 6 deletions

View File

@@ -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)
}
}

View File

@@ -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)
}