Skip to content

Commit

Permalink
fix type
Browse files Browse the repository at this point in the history
  • Loading branch information
losman0s committed Sep 15, 2023
1 parent c43862f commit 977de0f
Showing 1 changed file with 3 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
import { Typography, Modal, SvgIcon } from "@mui/material";
import { Dispatch, FC, SetStateAction, useEffect, useMemo, useState } from "react";
import { Typography, Modal } from "@mui/material";
import { Dispatch, FC, SetStateAction, useState } from "react";
import { Close } from "@mui/icons-material";
import { TokenData } from "./StakingCard";
import Image from "next/image";
import { PublicKey } from "@solana/web3.js";
import { NumberFormatValues, NumericFormat } from "react-number-format";
import { PrimaryButton } from "./PrimaryButton";

interface SettingsModalProps {
Expand All @@ -22,8 +18,7 @@ export const SettingsModal: FC<SettingsModalProps> = ({
selectedSlippage,
setSelectedSlippage,
}) => {
const [localSlippage, setLocalSlippage] = useState<number>();
useEffect(() => setLocalSlippage(selectedSlippage), [selectedSlippage]);
const [localSlippage, setLocalSlippage] = useState<number>(selectedSlippage);

const onSaveSettings = () => {
setSelectedSlippage(localSlippage);
Expand Down

0 comments on commit 977de0f

Please sign in to comment.