Refresh notifications + Fix user profile header info
This commit is contained in:
parent
ac1b739bf3
commit
3850dab340
|
@ -53,7 +53,7 @@ struct AccountDetailHeaderView: View {
|
|||
Spacer()
|
||||
Group {
|
||||
makeCustomInfoLabel(title: "Posts", count: account.statusesCount)
|
||||
makeCustomInfoLabel(title: "Following", count: account.followersCount)
|
||||
makeCustomInfoLabel(title: "Following", count: account.followingCount)
|
||||
makeCustomInfoLabel(title: "Followers", count: account.followersCount)
|
||||
}.offset(y: 20)
|
||||
}
|
||||
|
|
|
@ -50,6 +50,9 @@ public struct NotificationsListView: View {
|
|||
await viewModel.fetchNotifications()
|
||||
}
|
||||
}
|
||||
.refreshable {
|
||||
await viewModel.fetchNotifications()
|
||||
}
|
||||
.navigationTitle(Text("Notifications"))
|
||||
.navigationBarTitleDisplayMode(.inline)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue