mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2025-01-24 14:58:07 +00:00
Allow tapping avatar to go details page (#21)
This commit is contained in:
parent
ef44e32e21
commit
fa912bd327
1 changed files with 4 additions and 0 deletions
|
@ -22,7 +22,11 @@ public struct StatusRowView: View {
|
||||||
if !viewModel.isCompact,
|
if !viewModel.isCompact,
|
||||||
theme.avatarPosition == .leading,
|
theme.avatarPosition == .leading,
|
||||||
let status: AnyStatus = viewModel.status.reblog ?? viewModel.status {
|
let status: AnyStatus = viewModel.status.reblog ?? viewModel.status {
|
||||||
|
Button {
|
||||||
|
routeurPath.navigate(to: .accountDetailWithAccount(account: status.account))
|
||||||
|
} label: {
|
||||||
AvatarView(url: status.account.avatar, size: .status)
|
AvatarView(url: status.account.avatar, size: .status)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
VStack(alignment: .leading) {
|
VStack(alignment: .leading) {
|
||||||
if !viewModel.isCompact {
|
if !viewModel.isCompact {
|
||||||
|
|
Loading…
Reference in a new issue