mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-12-23 23:50:36 +00:00
Timeline: Tag heeader now tappable
This commit is contained in:
parent
326d6e5d50
commit
f39005c118
1 changed files with 5 additions and 0 deletions
|
@ -4,6 +4,8 @@ import SwiftUI
|
|||
|
||||
struct StatusRowTagView: View {
|
||||
@Environment(CurrentAccount.self) private var currentAccount
|
||||
@Environment(RouterPath.self) private var routerPath
|
||||
|
||||
@Environment(\.isHomeTimeline) private var isHomeTimeline
|
||||
|
||||
let viewModel: StatusRowViewModel
|
||||
|
@ -17,6 +19,9 @@ struct StatusRowTagView: View {
|
|||
.font(.scaledFootnote)
|
||||
.foregroundStyle(.secondary)
|
||||
.fontWeight(.semibold)
|
||||
.onTapGesture {
|
||||
routerPath.navigate(to: .hashTag(tag: tag.title, account: nil))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue