Allow tapping avatar to go details page (#21)
This commit is contained in:
parent
ef44e32e21
commit
fa912bd327
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue