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

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 {