Allow tapping avatar to go details page (#21)

This commit is contained in:
Sean Goldin 2023-01-03 00:40:22 -06:00 committed by GitHub
parent ef44e32e21
commit fa912bd327
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -22,7 +22,11 @@ public struct StatusRowView: View {
if !viewModel.isCompact,
theme.avatarPosition == .leading,
let status: AnyStatus = viewModel.status.reblog ?? viewModel.status {
Button {
routeurPath.navigate(to: .accountDetailWithAccount(account: status.account))
} label: {
AvatarView(url: status.account.avatar, size: .status)
}
}
VStack(alignment: .leading) {
if !viewModel.isCompact {