From 3639028e5c0cd6e5dd36fe77b4b53722f0f6b572 Mon Sep 17 00:00:00 2001 From: nriedman <108841122+nriedman@users.noreply.github.com> Date: Thu, 4 Apr 2024 11:00:27 -0700 Subject: [PATCH] Update DashboardView.swift --- ENGAGEHF/Dashboard/DashboardView.swift | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) 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)) }