Update nip05 buy button to only show if nip05 field is empty
This commit is contained in:
parent
9c5e386444
commit
b800d9532c
|
@ -147,10 +147,12 @@ export default function ProfileSettings(props: ProfileSettingsProps) {
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<input type="text" className="mr10" value={nip05} onChange={e => setNip05(e.target.value)} />
|
<input type="text" className="mr10" value={nip05} onChange={e => setNip05(e.target.value)} />
|
||||||
<button type="button" onClick={() => navigate("/verification")}>
|
{(nip05 === "") && (
|
||||||
<FontAwesomeIcon icon={faShop} />
|
<button type="button" onClick={() => navigate("/verification")}>
|
||||||
<FormattedMessage {...messages.Buy} />
|
<FontAwesomeIcon icon={faShop} />
|
||||||
</button>
|
<FormattedMessage {...messages.Buy} />
|
||||||
|
</button>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="form-group card">
|
<div className="form-group card">
|
||||||
|
|
Loading…
Reference in New Issue