Skip to content

Commit

Permalink
Fix copy_icon image
Browse files Browse the repository at this point in the history
  • Loading branch information
will-moore committed Mar 10, 2023
1 parent 5f190e1 commit 5f17aa4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/CopyButton.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import React from "react";

import copy_icon from "/copy_icon.png";

export default function CopyButton({ source }) {

let [shaking, setShaking] = React.useState(false);
Expand Down Expand Up @@ -47,7 +49,7 @@ export default function CopyButton({ source }) {

return (
<button title="Copy" style={buttonStyle} onClick={copyTextToClipboard}>
<img src="/copy_icon.png" />
<img src={copy_icon} />
</button>
);
}

0 comments on commit 5f17aa4

Please sign in to comment.