mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2025-01-12 09:05:26 +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 {
|
struct StatusRowTagView: View {
|
||||||
@Environment(CurrentAccount.self) private var currentAccount
|
@Environment(CurrentAccount.self) private var currentAccount
|
||||||
|
@Environment(RouterPath.self) private var routerPath
|
||||||
|
|
||||||
@Environment(\.isHomeTimeline) private var isHomeTimeline
|
@Environment(\.isHomeTimeline) private var isHomeTimeline
|
||||||
|
|
||||||
let viewModel: StatusRowViewModel
|
let viewModel: StatusRowViewModel
|
||||||
|
@ -17,6 +19,9 @@ struct StatusRowTagView: View {
|
||||||
.font(.scaledFootnote)
|
.font(.scaledFootnote)
|
||||||
.foregroundStyle(.secondary)
|
.foregroundStyle(.secondary)
|
||||||
.fontWeight(.semibold)
|
.fontWeight(.semibold)
|
||||||
|
.onTapGesture {
|
||||||
|
routerPath.navigate(to: .hashTag(tag: tag.title, account: nil))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue