Copy single file at a time.

pull/5370/head
ioedeveloper 4 years ago
parent dea284635c
commit 03e855d9c4
  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