profile: show subscriber date instead of number
Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user