add lookup to ownership page
This commit is contained in:
parent
15f636f4b1
commit
b1e6242972
|
@ -75,16 +75,9 @@ const DisplayBox = ({ displayType, pubKey }) => (
|
|||
</div>
|
||||
);
|
||||
|
||||
const MobileAddressDisplay = ({ domainName, address, statusAccount, releaseTime, defaultAccount, isOwner, edit, onSubmit }) => (
|
||||
const MobileAddressDisplay = ({ domainName, address, statusAccount, releaseTime, defaultAccount, isOwner, edit, onSubmit, handleChange, values, handleSubmit }) => (
|
||||
<Fragment>
|
||||
<MobileSearch
|
||||
search
|
||||
name="domainName"
|
||||
placeholder='Search for available name'
|
||||
// value={values.domainName}
|
||||
// onChange={handleChange}
|
||||
required
|
||||
wide />
|
||||
<LookupForm {...{ handleSubmit, values, handleChange }} justSearch />
|
||||
<Info background={isOwner ? '#44D058' : '#000000'} style={{ margin: '0.4em', boxShadow: '0px 6px 10px rgba(0, 0, 0, 0.2)' }}>
|
||||
<Typography variant="title" style={
|
||||
{ display: 'flex', flexDirection: 'column', alignItems: 'center', justifyContent: 'space-evenly', height: '4em', color: '#ffffff', textAlign: 'center', margin: '10%' }
|
||||
|
@ -340,6 +333,7 @@ const InnerForm = ({
|
|||
? <LookupForm {...{ handleSubmit, values, handleChange }} />
|
||||
: validAddress(status.address) || defaultAccount === status.ownerAddress ?
|
||||
<DisplayAddress
|
||||
{...{ handleSubmit, values, handleChange }}
|
||||
domainName={values.domainName}
|
||||
address={status.address}
|
||||
statusAccount={status.statusAccount}
|
||||
|
|
Loading…
Reference in New Issue