We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b938d7d commit 273bea2Copy full SHA for 273bea2
1 file changed
Core/Sources/SuggestionWidget/SuggestionPanelContent/PromptToCodePanelView.swift
@@ -502,8 +502,10 @@ extension PromptToCodePanelView {
502
var body: some View {
503
WithPerceptionTracking {
504
if !store.snippet.modifiedCode.isEmpty {
505
- CopyButton {
506
- store.send(.copyCodeButtonTapped)
+ DraggableCopyButton {
+ store.withState {
507
+ $0.snippet.modifiedCode
508
+ }
509
}
510
511
0 commit comments