Skip to content

Commit 273bea2

Browse files
committed
Update copy button of modification
1 parent b938d7d commit 273bea2

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

Core/Sources/SuggestionWidget/SuggestionPanelContent/PromptToCodePanelView.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -502,8 +502,10 @@ extension PromptToCodePanelView {
502502
var body: some View {
503503
WithPerceptionTracking {
504504
if !store.snippet.modifiedCode.isEmpty {
505-
CopyButton {
506-
store.send(.copyCodeButtonTapped)
505+
DraggableCopyButton {
506+
store.withState {
507+
$0.snippet.modifiedCode
508+
}
507509
}
508510
}
509511
}

0 commit comments

Comments
 (0)