diff --git a/src/core/components/copy-to-clipboard-btn.jsx b/src/core/components/copy-to-clipboard-btn.jsx
deleted file mode 100644
index 2147b3ccccc..00000000000
--- a/src/core/components/copy-to-clipboard-btn.jsx
+++ /dev/null
@@ -1,41 +0,0 @@
-import React from "react"
-import { CopyToClipboard } from "react-copy-to-clipboard"
-import PropTypes from "prop-types"
-
-const COPY_PATH_LABEL = "Copy path to clipboard"
-
-/**
- * @param {{ getComponent: func, textToCopy: string }} props
- * @returns {JSX.Element}
- * @constructor
- */
-export default class CopyToClipboardBtn extends React.Component {
- render() {
- let { getComponent } = this.props
-
- const CopyIcon = getComponent("CopyIcon")
-
- return (
-
-
-
-
-
- )
- }
-
- static propTypes = {
- getComponent: PropTypes.func.isRequired,
- textToCopy: PropTypes.string.isRequired,
- }
-}
diff --git a/src/core/components/copy-to-clipboard-btn.tsx b/src/core/components/copy-to-clipboard-btn.tsx
new file mode 100644
index 00000000000..e30dab749e5
--- /dev/null
+++ b/src/core/components/copy-to-clipboard-btn.tsx
@@ -0,0 +1,29 @@
+/**
+ * @prettier
+ */
+import React from "react"
+import { CopyToClipboard } from "react-copy-to-clipboard"
+
+const COPY_PATH_LABEL = "Copy path to clipboard"
+
+interface Props {
+ textToCopy: string
+}
+
+const CopyToClipboardBtn = ({ textToCopy }: Props) => (
+
+
+
+
+
+)
+
+export default CopyToClipboardBtn
diff --git a/src/core/plugins/icons/components/copy.jsx b/src/core/plugins/icons/components/copy.jsx
deleted file mode 100644
index b4079d41bf3..00000000000
--- a/src/core/plugins/icons/components/copy.jsx
+++ /dev/null
@@ -1,34 +0,0 @@
-/**
- * @prettier
- */
-import React from "react"
-import PropTypes from "prop-types"
-
-const Copy = ({ className = null, width = 15, height = 16, ...rest }) => (
-
-)
-
-Copy.propTypes = {
- className: PropTypes.string,
- width: PropTypes.string,
- height: PropTypes.string,
-}
-
-export default Copy
diff --git a/src/core/plugins/icons/index.js b/src/core/plugins/icons/index.js
index a70c8a889ea..5f94bba3888 100644
--- a/src/core/plugins/icons/index.js
+++ b/src/core/plugins/icons/index.js
@@ -5,7 +5,6 @@ import ArrowUpIcon from "./components/arrow-up"
import ArrowDownIcon from "./components/arrow-down"
import ArrowIcon from "./components/arrow"
import CloseIcon from "./components/close"
-import CopyIcon from "./components/copy"
import LockIcon from "./components/lock"
import UnlockIcon from "./components/unlock"
@@ -15,7 +14,6 @@ const IconsPlugin = () => ({
ArrowDownIcon,
ArrowIcon,
CloseIcon,
- CopyIcon,
LockIcon,
UnlockIcon,
},
diff --git a/src/style/_buttons.scss b/src/style/_buttons.scss
index 23f35eddbc3..dac4a22e91e 100644
--- a/src/style/_buttons.scss
+++ b/src/style/_buttons.scss
@@ -169,6 +169,7 @@ button {
height: 25px;
background: url("data:image/svg+xml, ")
center center no-repeat;
+ padding: 0;
@media (forced-colors: active) {
forced-color-adjust: none;