Fix for empty display boxes
This commit is contained in:
parent
e926060712
commit
6ea9b5caee
|
@ -28,7 +28,7 @@ const BlueBox = styled.div`
|
||||||
color: #4360df;
|
color: #4360df;
|
||||||
`;
|
`;
|
||||||
|
|
||||||
const DisplayBox = ({ displayType, pubKey, onClick, showBlueBox }) => (
|
const DisplayBox = ({ displayType, text, onClick, showBlueBox }) => (
|
||||||
<div>
|
<div>
|
||||||
<DisplayLabel>
|
<DisplayLabel>
|
||||||
{displayType}
|
{displayType}
|
||||||
|
@ -42,7 +42,7 @@ const DisplayBox = ({ displayType, pubKey, onClick, showBlueBox }) => (
|
||||||
</BlueBox>
|
</BlueBox>
|
||||||
:
|
:
|
||||||
<Typography type='body1'>
|
<Typography type='body1'>
|
||||||
{pubKey}
|
{text}
|
||||||
</Typography>
|
</Typography>
|
||||||
}
|
}
|
||||||
</InnerDisplayBox>
|
</InnerDisplayBox>
|
||||||
|
|
|
@ -103,8 +103,8 @@ const MobileAddressDisplay = ({ domainName, address, statusAccount, expirationTi
|
||||||
editAccount={true}
|
editAccount={true}
|
||||||
preRegisteredCallback={onSubmit}
|
preRegisteredCallback={onSubmit}
|
||||||
registeredCallbackFn={console.log} />}
|
registeredCallbackFn={console.log} />}
|
||||||
{!edit && <DisplayBox displayType='Your wallet address' pubKey={address} />}
|
{!edit && <DisplayBox displayType='Your wallet address' text={address} />}
|
||||||
{!edit && validStatusAddress(statusAccount) && <DisplayBox displayType={YOUR_CONTACT_CODE} pubKey={statusAccount} />}
|
{!edit && validStatusAddress(statusAccount) && <DisplayBox displayType={YOUR_CONTACT_CODE} text={statusAccount} />}
|
||||||
</Fragment>
|
</Fragment>
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue