Only show transaction add buttons on Transaction tab
This commit is contained in:
parent
6352cb7e20
commit
de427a64e4
1 changed files with 10 additions and 8 deletions
|
@ -51,14 +51,16 @@ struct TabbedBudgetView: View {
|
|||
.tag(3)
|
||||
}.navigationBarItems(
|
||||
trailing: HStack {
|
||||
NavigationLink(destination: EmptyView()) {
|
||||
Image(systemName: "magnifyingglass")
|
||||
}
|
||||
Button(action: {
|
||||
self.isAddingTransaction = true
|
||||
}) {
|
||||
Image(systemName: "plus")
|
||||
.padding()
|
||||
if tabSelection == 1 {
|
||||
NavigationLink(destination: EmptyView()) {
|
||||
Image(systemName: "magnifyingglass")
|
||||
}
|
||||
Button(action: {
|
||||
self.isAddingTransaction = true
|
||||
}) {
|
||||
Image(systemName: "plus")
|
||||
.padding()
|
||||
}
|
||||
}
|
||||
}
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue