From f5e201c782d446358a16c8a9ab38ea29596efa2a Mon Sep 17 00:00:00 2001 From: ioedeveloper Date: Wed, 19 May 2021 17:24:55 +0100 Subject: [PATCH] Copy single file at a time. --- libs/remix-ui/file-explorer/src/lib/file-explorer.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/remix-ui/file-explorer/src/lib/file-explorer.tsx b/libs/remix-ui/file-explorer/src/lib/file-explorer.tsx index 53a752e45d..91e26e7ddb 100644 --- a/libs/remix-ui/file-explorer/src/lib/file-explorer.tsx +++ b/libs/remix-ui/file-explorer/src/lib/file-explorer.tsx @@ -742,9 +742,10 @@ export const FileExplorer = (props: FileExplorerProps) => { const handleCopyClick = (path: string, type: string) => { setState(prevState => { - return { ...prevState, copyElement: [...prevState.copyElement, { key: path, type }] } + return { ...prevState, copyElement: [{ key: path, type }] } }) setCanPaste(true) + // TODO: Reset toaster text after timeout. toast('Copied to clipboard') }