File tree Expand file tree Collapse file tree 2 files changed +0
-30
lines changed
Wisp/Views/SpriteDetail/Chat Expand file tree Collapse file tree 2 files changed +0
-30
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ struct ChatInputBar: View {
1616 var onRemoveAttachment : ( ( AttachedFile ) -> Void ) ? = nil
1717 var lastUploadedFileName : String ? = nil
1818 var onStash : ( ( ) -> Void ) ? = nil
19- var onSideChat : ( ( ) -> Void ) ? = nil
2019 var isFocused : FocusState < Bool > . Binding
2120
2221 @State private var showStopConfirmation = false
@@ -60,15 +59,6 @@ struct ChatInputBar: View {
6059 )
6160 }
6261
63- if let onSideChat {
64- Button ( action: onSideChat) {
65- Image ( systemName: " bubble.and.pencil " )
66- . font ( . title3)
67- }
68- . buttonStyle ( . glass)
69- . help ( " Side chat " )
70- }
71-
7262 PasteInterceptingTextInput (
7363 text: $text,
7464 isFocused: isFocused,
@@ -137,19 +127,6 @@ struct ChatInputBar: View {
137127 )
138128}
139129
140- #Preview( " With Side Chat " ) {
141- @Previewable @State var text = " "
142- @Previewable @FocusState var isFocused : Bool
143- ChatInputBar (
144- text: $text,
145- isStreaming: false ,
146- onSend: { } ,
147- onInterrupt: { } ,
148- onSideChat: { } ,
149- isFocused: $isFocused
150- )
151- }
152-
153130#Preview( " Streaming " ) {
154131 @Previewable @State var text = " "
155132 @Previewable @FocusState var isFocused : Bool
Original file line number Diff line number Diff line change @@ -168,13 +168,6 @@ struct ChatView: View {
168168 } ,
169169 lastUploadedFileName: viewModel. lastUploadedFileName,
170170 onStash: { viewModel. stashDraft ( ) } ,
171- onSideChat: {
172- quickActionsViewModel = QuickActionsViewModel (
173- spriteName: viewModel. spriteName,
174- sessionId: viewModel. sessionId,
175- workingDirectory: viewModel. workingDirectory
176- )
177- } ,
178171 isFocused: $isInputFocused
179172 )
180173 }
You can’t perform that action at this time.
0 commit comments