mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-12-27 09:30:37 +00:00
Add indicator for bots accounts
This commit is contained in:
parent
5e81eda3ed
commit
88173adc9e
2 changed files with 4 additions and 0 deletions
|
@ -192,6 +192,9 @@ struct AccountDetailHeaderView: View {
|
|||
private var joinedAtView: some View {
|
||||
if let joinedAt = viewModel.account?.createdAt.asDate {
|
||||
HStack(spacing: 4) {
|
||||
if account.bot {
|
||||
Text("🤖")
|
||||
}
|
||||
Image(systemName: "calendar")
|
||||
Text("account.joined")
|
||||
Text(joinedAt, style: .date)
|
||||
|
|
|
@ -66,6 +66,7 @@ struct StatusRowHeaderView: View {
|
|||
}
|
||||
|
||||
private var dateView: Text {
|
||||
Text(viewModel.status.account.bot ? "🤖 " : "") +
|
||||
Text(status.createdAt.relativeFormatted) +
|
||||
Text(" ⸱ ") +
|
||||
Text(Image(systemName: viewModel.status.visibility.iconName))
|
||||
|
|
Loading…
Reference in a new issue