Skip to content

Commit

Permalink
Network selector: add links to RPC and Horizon providers (#1238)
Browse files Browse the repository at this point in the history
  • Loading branch information
quietbits authored Jan 30, 2025
1 parent b0c63b7 commit b0ce69d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/NetworkSelector/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,7 @@ export const NetworkSelector = () => {
handleInputChange("rpcUrl", e.target.value);
}}
error={validationError?.rpcUrl}
infoLink="https://developers.stellar.org/docs/data/rpc/rpc-providers"
/>
{/* TODO: put these back once Stellar JS SDK is ready */}
{/* <NetworkInput
Expand Down Expand Up @@ -344,6 +345,7 @@ export const NetworkSelector = () => {
handleInputChange("horizonUrl", e.target.value);
}}
error={validationError?.horizonUrl}
infoLink="https://developers.stellar.org/docs/data/horizon/horizon-providers"
/>
{/* TODO: put these back once Stellar JS SDK is ready */}
{/* <NetworkInput
Expand Down Expand Up @@ -408,6 +410,7 @@ type NetworkInputProps = {
error?: React.ReactNode;
disabled?: boolean;
disableAutocomplete?: boolean;
infoLink?: string;
};

const NetworkInput = ({
Expand All @@ -419,6 +422,7 @@ const NetworkInput = ({
error,
disabled,
disableAutocomplete,
infoLink,
}: NetworkInputProps) => {
return (
<Input
Expand All @@ -435,6 +439,7 @@ const NetworkInput = ({
copyButton={{
position: "right",
}}
infoLink={infoLink}
{...(disableAutocomplete ? { autoComplete: "off" } : {})}
/>
);
Expand Down

0 comments on commit b0ce69d

Please sign in to comment.