Skip to content

Commit

Permalink
minor code styling
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulGoldschmidt committed Feb 17, 2025
1 parent d78345a commit a251efe
Showing 1 changed file with 22 additions and 20 deletions.
42 changes: 22 additions & 20 deletions ENGAGEHF/Dashboard/Messages/MessageRow.swift
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ struct MessageRow: View {
}
}


var body: some View {
HStack(alignment: .top, spacing: 16) {
actionImage
Expand Down Expand Up @@ -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 {
Expand All @@ -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())
Expand Down

0 comments on commit a251efe

Please sign in to comment.