Only show transaction add buttons on Transaction tab

This commit is contained in:
William Brawner 2021-10-18 06:11:11 -06:00
parent 6352cb7e20
commit de427a64e4

View file

@ -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()
}
}
}
)