Aniket-Engg-patch-1
aniket-engg 10 months ago committed by Aniket
parent 6dd0e6018a
commit 11e9c242a7
  1. 2
      libs/remix-ui/workspace/src/lib/actions/index.ts
  2. 2
      libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx

@ -399,7 +399,7 @@ export const copyShareURL = async (path: string) => {
let result = await ipfs.add(base64Content) let result = await ipfs.add(base64Content)
const hash = result.cid.string const hash = result.cid.string
const shareUrl = `${window.location.origin}/#shareCode=${hash}` const shareUrl = `${window.location.origin}/#shareCode=${hash}`
console.log('share url---->', shareUrl) navigator.clipboard.writeText(shareUrl)
} catch (error) { } catch (error) {
dispatch(displayPopUp('Oops! An error ocurred while performing copyShareURL operation.' + error)) dispatch(displayPopUp('Oops! An error ocurred while performing copyShareURL operation.' + error))
} }

@ -536,9 +536,7 @@ export function Workspace() {
// eslint-disable-next-line @typescript-eslint/no-unused-vars // eslint-disable-next-line @typescript-eslint/no-unused-vars
const handleCopyShareURLClick = (path: string, _type: string) => { const handleCopyShareURLClick = (path: string, _type: string) => {
console.log('path---->', path)
global.dispatchCopyShareURL(path) global.dispatchCopyShareURL(path)
// navigator.clipboard.writeText(fileName)
} }
// eslint-disable-next-line @typescript-eslint/no-unused-vars // eslint-disable-next-line @typescript-eslint/no-unused-vars

Loading…
Cancel
Save