Skip to content

Commit

Permalink
feat(docs): added condition for showing input
Browse files Browse the repository at this point in the history
  • Loading branch information
aednikanov committed Sep 18, 2024
1 parent d94e724 commit 95c99ab
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions src/components/ParserOpenRPC/RequestBox/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,17 @@ export default function RequestBox({

return (
<>
<div style={{ marginBottom: "20px" }}>
<label htmlFor="custom_key">Your API Key:</label>
<input
name="custom_key"
value={customAPIKey}
onChange={(e) => setCustomAPIKey(e.target.value)}
style={{ marginLeft: "10px", padding: "8px", border: "1px solid #fff", borderRadius: "8px", width: "360px" }} />
</div>
{!isWalletReferencePage ?
<div style={{ marginBottom: "20px" }}>
<label htmlFor="custom_key">Your API Key:</label>
<input
name="custom_key"
value={customAPIKey}
onChange={(e) => setCustomAPIKey(e.target.value)}
style={{ marginLeft: "10px", padding: "8px", border: "1px solid #fff", borderRadius: "8px", width: "360px" }} />
</div> :
null
}
<div className={styles.cardWrapper}>
<div className={styles.cardHeader}>
<strong className={styles.cardHeading}>Request</strong>
Expand Down

0 comments on commit 95c99ab

Please sign in to comment.