File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
packages/neuron-ui/src/components/Receive Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ export const AddressQrCodeWithCopyZone = ({
2525 onClick,
2626} : AddressTransformWithCopyZoneProps ) => {
2727 const [ t ] = useTranslation ( )
28+ const { wallet } = useGlobalState ( )
2829 const transformLabel = t (
2930 isInShortFormat ? 'receive.turn-into-full-version-format' : 'receive.turn-into-deprecated-format'
3031 )
@@ -85,10 +86,12 @@ export const AddressQrCodeWithCopyZone = ({
8586 < AddressTransform />
8687 { transformLabel }
8788 </ button >
88- < button type = "button" className = { styles . privateKey } onClick = { ( ) => setShowViewPrivateKey ( true ) } >
89- < PrivateKey />
90- { t ( 'addresses.view-private-key' ) }
91- </ button >
89+ { ! wallet . device && (
90+ < button type = "button" className = { styles . privateKey } onClick = { ( ) => setShowViewPrivateKey ( true ) } >
91+ < PrivateKey />
92+ { t ( 'addresses.view-private-key' ) }
93+ </ button >
94+ ) }
9295 </ div >
9396 </ div >
9497
You can’t perform that action at this time.
0 commit comments