Skip to content

Commit

Permalink
Add warning for futurenet
Browse files Browse the repository at this point in the history
  • Loading branch information
quietbits committed Mar 13, 2024
1 parent a689e74 commit 639d86b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/components/NetworkSelector/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
useRef,
useState,
} from "react";
import { Button, Icon, Input } from "@stellar/design-system";
import { Button, Icon, Input, Notification } from "@stellar/design-system";

import { NetworkIndicator } from "@/components/NetworkIndicator";
import { localStorageSavedNetwork } from "@/helpers/localStorageSavedNetwork";
Expand Down Expand Up @@ -277,6 +277,17 @@ export const NetworkSelector = () => {
</div>

<div className="NetworkSelector__body__inputs">
{activeNetworkId === "futurenet" ? (
<Notification
variant="warning"
title="Warning"
icon={<Icon.AlertTriangle />}
>
Futurenet is an unstable network. We recommend using Testnet for
your development purposes.
</Notification>
) : null}

<form onSubmit={handleSelectNetwork}>
<Input
id="rpc-url"
Expand Down
2 changes: 2 additions & 0 deletions src/components/NetworkSelector/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@
}

&__inputs {
display: grid;
gap: pxToRem(8px);
padding: pxToRem(6px) pxToRem(8px);
background-color: transparent;
border-radius: pxToRem(4px);
Expand Down

0 comments on commit 639d86b

Please sign in to comment.