diff --git a/ENGAGEHF/Dashboard/Messages/MessageRow.swift b/ENGAGEHF/Dashboard/Messages/MessageRow.swift index 3e6543b9..f977990a 100644 --- a/ENGAGEHF/Dashboard/Messages/MessageRow.swift +++ b/ENGAGEHF/Dashboard/Messages/MessageRow.swift @@ -131,6 +131,7 @@ struct MessageRow: View { } } + var body: some View { HStack(alignment: .top, spacing: 16) { actionImage @@ -158,7 +159,7 @@ struct MessageRow: View { #Preview { // swiftlint:disable:this closure_body_length struct MessageRowPreviewWrapper: View { @Environment(MessageManager.self) private var messageManager - + var body: some View { NavigationStack { List { @@ -177,29 +178,30 @@ struct MessageRow: View { } ) } - .studyApplicationList() - .toolbar { - Button( - action: { - messageManager.addMockMessage() - }, - label: { - Text("Add Mock") - } - ) - Button( - action: { - messageManager.makeMockMessagesProcessing() - }, - label: { - Text("Set Processing") - } - ) - } + .studyApplicationList() + .toolbar { + Button( + action: { + messageManager.addMockMessage() + }, + label: { + Text("Add Mock") + } + ) + Button( + action: { + messageManager.makeMockMessagesProcessing() + }, + label: { + Text("Set Processing") + } + ) + } } } } + return MessageRowPreviewWrapper() .previewWith(standard: ENGAGEHFStandard()) { AccountConfiguration(service: InMemoryAccountService())