From 935bf64a311ddfb6e92bf818016bdcc1037f14e7 Mon Sep 17 00:00:00 2001 From: Kiko Beats Date: Sat, 11 Jul 2020 13:07:17 +0200 Subject: [PATCH] fix: copy expanded text --- .../elements/MultiCodeEditor/MultiCodeEditor.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/components/elements/MultiCodeEditor/MultiCodeEditor.js b/src/components/elements/MultiCodeEditor/MultiCodeEditor.js index 4bfa5ea3f..3a47475e9 100644 --- a/src/components/elements/MultiCodeEditor/MultiCodeEditor.js +++ b/src/components/elements/MultiCodeEditor/MultiCodeEditor.js @@ -107,7 +107,7 @@ const ActionComponent = ({ setEditorLanguage, editorLanguage, editorLanguages, - code, + toCopy, theme }) => { const background = theme === 'dark' ? colors.black : colors.white @@ -127,7 +127,7 @@ const ActionComponent = ({ onChange={setEditorLanguage} /> - + ) } @@ -155,13 +155,12 @@ const MultiCodeEditor = ({ theme, languages: codeByLanguage, ...props }) => { ( + ActionComponent={props => ( )} {...props}