diff --git a/ENGAGEHF/Dashboard/DashboardView.swift b/ENGAGEHF/Dashboard/DashboardView.swift index 03216f84..b235fc04 100644 --- a/ENGAGEHF/Dashboard/DashboardView.swift +++ b/ENGAGEHF/Dashboard/DashboardView.swift @@ -21,16 +21,15 @@ struct Dashboard: View { } .navigationTitle("Home") - .toolbar { - ToolbarItem(placement: .topBarTrailing) { - AccountButton(isPresented: $presentingAccount) + .toolbar { + ToolbarItem(placement: .topBarTrailing) { + AccountButton(isPresented: $presentingAccount) + } } - } } } } #Preview { - @State var presentingAccount = false - return Dashboard(presentingAccount: $presentingAccount) + return Dashboard(presentingAccount: .constant(false)) }