Skip to content

Commit

Permalink
chore(docs) : Add faucet urls to network overview tabs. (#4233)
Browse files Browse the repository at this point in the history
* chore(docs): Add faucet URLs to network overview tabs.
  • Loading branch information
vivekjain23 authored Dec 4, 2024
1 parent cac0f0b commit 53efa86
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
30 changes: 15 additions & 15 deletions docs/site/src/components/NetworkInfo/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ function L1(props: NetworkProps) {
<CodeBlock>{props.permaNodeApi}</CodeBlock>
</td>
</tr>
{props.faucet && (
{props.faucetUrl && (
<tr>
<th>Faucet</th>
<td>
<a href={props.faucet} target='_blank' rel='noopener noreferrer'>
{props.faucet}
</a>
<CodeBlock>
{props.faucetUrl}
</CodeBlock>
</td>
</tr>
)}
Expand Down Expand Up @@ -81,13 +81,13 @@ function Testnet(props: NetworkProps) {
<CodeBlock>{props.permaNodeApi}</CodeBlock>
</td>
</tr>
{props.faucet && (
{props.faucetUrl && (
<tr>
<th>Faucet</th>
<td>
<a href={props.faucet} target='_blank' rel='noopener noreferrer'>
{props.faucet}
</a>
<CodeBlock>
{props.faucetUrl}
</CodeBlock>
</td>
</tr>
)}
Expand Down Expand Up @@ -127,13 +127,13 @@ function Devnet(props: NetworkProps) {
<CodeBlock>{props.permaNodeApi}</CodeBlock>
</td>
</tr>
{props.faucet && (
{props.faucetUrl && (
<tr>
<th>Faucet</th>
<td>
<a href={props.faucet} target='_blank' rel='noopener noreferrer'>
{props.faucet}
</a>
<CodeBlock>
{props.faucetUrl}
</CodeBlock>
</td>
</tr>
)}
Expand Down Expand Up @@ -294,13 +294,13 @@ function Move(props: MoveProps) {
<CodeBlock>{props.jsonRpcWebsocketUrl}</CodeBlock>
</td>
</tr>
{props.faucet && (
{props.faucetUrl && (
<tr>
<th>Faucet URL</th>
<td>
<a href={props.faucetUrl} target="_blank" rel="noopener noreferrer">
<CodeBlock>
{props.faucetUrl}
</a>
</CodeBlock>
</td>
</tr>
)}
Expand Down
2 changes: 1 addition & 1 deletion docs/site/src/components/constant.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ export interface NetworkProps {
httpRestApi: string;
eventApi: string;
permaNodeApi: string;
faucet?: string;
faucetUrl?: string;
explorer: string;
evm: AddEthereumChainParameter;
evmCustom: {
Expand Down

0 comments on commit 53efa86

Please sign in to comment.