Skip to content

Commit

Permalink
chore: allow edit default networks rpc
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaslovato committed Apr 16, 2024
1 parent f2d82b6 commit b0d40af
Showing 1 changed file with 16 additions and 19 deletions.
35 changes: 16 additions & 19 deletions source/pages/Settings/ManageNetwork.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ const ManageNetworkView = () => {
(state: RootState) => state.vault.activeNetwork
);
const { t } = useTranslation();
const SYSCOIN_UTXO_CHAIN_ID = 57;

const { navigate } = useUtils();
const { wallet } = getController();
Expand Down Expand Up @@ -69,24 +68,22 @@ const ManageNetworkView = () => {
</div>

<div className="flex gap-x-3 items-center justify-between">
{network.chainId !== SYSCOIN_UTXO_CHAIN_ID && (
<IconButton
onClick={() =>
editNetwork({
selected: network,
chain: INetworkType.Syscoin,
isDefault: network.default,
})
}
type="primary"
shape="circle"
>
<Icon
name="edit"
className="hover:text-brand-royalblue text-xl"
/>
</IconButton>
)}
<IconButton
onClick={() =>
editNetwork({
selected: network,
chain: INetworkType.Syscoin,
isDefault: network.default,
})
}
type="primary"
shape="circle"
>
<Icon
name="edit"
className="hover:text-brand-royalblue text-xl"
/>
</IconButton>
{!network.default && (
<Tooltip
content={
Expand Down

0 comments on commit b0d40af

Please sign in to comment.