Skip to content

Commit

Permalink
chore: Changed param type
Browse files Browse the repository at this point in the history
  • Loading branch information
ape-fede committed Nov 15, 2022
1 parent f61f8b6 commit 37ac453
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/widgets/Navbar/NetworkButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import React from "react";
import { ArrowDropDownIcon } from "../../components/Svg";
import { useNetworkModal, SwitchNetwork } from "../NetworkModal";
import { ChainId, NETWORK_ICON, NETWORK_LABEL } from "../NetworkModal/config";
import { NETWORK_ICON, NETWORK_LABEL } from "../NetworkModal/config";
import { Button } from "../../components/Button";
import { Text } from "../../components/Text";
import styles from "./styles";
Expand All @@ -11,7 +11,7 @@ export interface Props {
chainId: number;
switchNetwork: SwitchNetwork;
t: (key: string) => string;
supportedChains?: ChainId[];
supportedChains?: number[];
}

const NetworkButton: React.FC<Props> = ({ chainId, switchNetwork, t, supportedChains }) => {
Expand Down
4 changes: 2 additions & 2 deletions src/widgets/NetworkModal/SelectNetworkModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { partition } from "lodash";
import { Modal, ModalHeader } from "../Modal";
import { SwitchNetwork } from "./types";
import { Heading } from "../../components/Heading";
import networks, { ChainId } from "./config";
import networks from "./config";
import NetworkCard from "./NetworkCard";
import { Svg } from "../../components/Svg";
import { Flex } from "../../components/Flex";
Expand All @@ -14,7 +14,7 @@ export interface Props {
chainId: number;
t: (key: string) => string;
onDismiss?: () => void;
supportedChains?: ChainId[];
supportedChains?: number[];
}

const SelectNetworkModal: React.FC<Props> = ({ switchNetwork, chainId, t, onDismiss, supportedChains }) => {
Expand Down
3 changes: 1 addition & 2 deletions src/widgets/NetworkModal/useNetworkModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import React from "react";
import { useModal } from "../Modal";
import { SwitchNetwork } from "./types";
import SelectNetworkModal from "./SelectNetworkModal";
import { ChainId } from "./config";

interface ReturnType {
onPresentNetworkModal: () => void;
Expand All @@ -12,7 +11,7 @@ const useNetworkModal = (
switchNetwork: SwitchNetwork,
chainId: number,
t: (key: string) => string,
supportedChains?: ChainId[]
supportedChains?: number[]
): ReturnType => {
const [onPresentNetworkModal] = useModal(
<SelectNetworkModal switchNetwork={switchNetwork} chainId={chainId} t={t} supportedChains={supportedChains} />,
Expand Down

0 comments on commit 37ac453

Please sign in to comment.