diff --git a/packages/extension-polkagate/src/components/OptionalCopyButton.tsx b/packages/extension-polkagate/src/components/OptionalCopyButton.tsx index c7c010e32..d6ecca7c4 100644 --- a/packages/extension-polkagate/src/components/OptionalCopyButton.tsx +++ b/packages/extension-polkagate/src/components/OptionalCopyButton.tsx @@ -1,20 +1,20 @@ // Copyright 2019-2024 @polkadot/extension-polkagate authors & contributors // SPDX-License-Identifier: Apache-2.0 -// @ts-nocheck /* eslint-disable react/jsx-max-props-per-line */ import { Grid, Popover, useTheme } from '@mui/material'; import React, { useCallback, useMemo, useState } from 'react'; -import OptionalCopyPopup from '../partials/OptionalCopyPopup'; import { VaadinIcon } from '../components'; +import OptionalCopyPopup from '../partials/OptionalCopyPopup'; interface Props { address: string | undefined; + iconWidth?: number; } -function OptionalCopyButton({ address }: Props): React.ReactElement { +function OptionalCopyButton ({ address, iconWidth = 20 }: Props): React.ReactElement { const theme = useTheme(); const [anchorEl, setAnchorEl] = useState(null); @@ -35,7 +35,7 @@ function OptionalCopyButton({ address }: Props): React.ReactElement { return ( <> - + { return ( ); @@ -174,7 +174,7 @@ function AccountDetail ({ address, chain, goToAccount, hideNumbers, identity, is /> - +