mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-11-26 18:21:00 +00:00
Add a mention / reply button on user profile navigation
This commit is contained in:
parent
58debff490
commit
3525d94f71
1 changed files with 12 additions and 1 deletions
|
@ -305,7 +305,18 @@ public struct AccountDetailView: View {
|
|||
|
||||
@ToolbarContentBuilder
|
||||
private var toolbarContent: some ToolbarContent {
|
||||
ToolbarItem(placement: .navigationBarTrailing) {
|
||||
ToolbarItemGroup(placement: .navigationBarTrailing) {
|
||||
if !viewModel.isCurrentUser {
|
||||
Button {
|
||||
if let account = viewModel.account {
|
||||
routerPath.presentedSheet = .mentionStatusEditor(account: account,
|
||||
visibility: preferences.postVisibility)
|
||||
}
|
||||
} label: {
|
||||
Image(systemName: "arrowshape.turn.up.left")
|
||||
}
|
||||
}
|
||||
|
||||
Menu {
|
||||
AccountDetailContextMenu(viewModel: viewModel)
|
||||
|
||||
|
|
Loading…
Reference in a new issue