Skip to content

Commit

Permalink
Move Rift_ConsoleMessageDetailsView
Browse files Browse the repository at this point in the history
  • Loading branch information
kean committed Aug 4, 2024
1 parent 4687382 commit e2c05ff
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ struct ConsoleMessageMetadataView: View {
let message: LoggerMessageEntity

var body: some View {
RichTextView(viewModel: .init(string: string))
Components.makeRichTextView(string: string)
#if !os(macOS)
.navigationTitle("Message Details")
#endif
Expand Down
4 changes: 4 additions & 0 deletions Sources/PulseUI/Helpers/Components.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ struct Components {
static func makeSessionPicker(selection: Binding<Set<UUID>>) -> some View {
SessionPickerView(selection: selection)
}

static func makeRichTextView(string: NSAttributedString) -> some View {
RichTextView(viewModel: .init(string: string))
}
}

#endif

0 comments on commit e2c05ff

Please sign in to comment.