Copy single file at a time.

pull/1209/head
ioedeveloper 4 years ago
parent a7b87f917a
commit f5e201c782
  1. 3
      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')
}

Loading…
Cancel
Save