Skip to content

Commit

Permalink
feat: fix issue
Browse files Browse the repository at this point in the history
  • Loading branch information
devchenyan committed Sep 14, 2023
1 parent c51e432 commit 0a6e558
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion packages/neuron-ui/src/components/Receive/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React, { useMemo, useCallback } from 'react'
import { useTranslation } from 'react-i18next'
import { useState as useGlobalState } from 'states'
import Dialog from 'widgets/Dialog'
import Toast from 'widgets/Toast'
import Button from 'widgets/Button'
import CopyZone from 'widgets/CopyZone'
import QRCode from 'widgets/QRCode'
Expand Down Expand Up @@ -72,7 +73,7 @@ const Receive = ({ onClose, address }: { onClose?: () => void; address?: string
}

const { isInShortFormat, setIsInShortFormat, address: showAddress } = useSwitchAddress(accountAddress)
const { ref, onCopyQrCode, onDownloadQrCode } = useCopyAndDownloadQrCode()
const { ref, onCopyQrCode, onDownloadQrCode, showCopySuccess } = useCopyAndDownloadQrCode()

return (
<Dialog
Expand Down Expand Up @@ -116,6 +117,8 @@ const Receive = ({ onClose, address }: { onClose?: () => void; address?: string

{isSingleAddress && <VerifyHardwareAddress address={accountAddress} wallet={wallet} />}
</div>

{showCopySuccess && <Toast content={t('common.copied')} />}
</Dialog>
)
}
Expand Down
2 changes: 1 addition & 1 deletion packages/neuron-ui/src/widgets/Table/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ const Table = <T extends Record<string, any>>(props: TableProps<T>) => {
className={headClassName}
style={{ width, minWidth }}
>
<div className={styles.thWrap}>
<div className={styles.thWrap} style={{ justifyContent: align }}>
{!!currentDataSource.length && isBalance ? (
<div className={styles.headWithBalance} style={{ justifyContent: align }}>
{title}
Expand Down

0 comments on commit 0a6e558

Please sign in to comment.