diff --git a/package.json b/package.json index e75b19c..811dfc2 100644 --- a/package.json +++ b/package.json @@ -29,6 +29,7 @@ "start": "craco start", "build": "craco build", "lint": "eslint --max-warnings 0 .", + "lint:fix": "eslint --fix .", "test": "craco test", "eject": "craco eject", "generate-types": "typechain --target=ethers-v5 --out-dir src/contracts './node_modules/@openzeppelin/contracts/build/contracts/ERC20.json'", diff --git a/src/components/Footer.tsx b/src/components/Footer.tsx index 87773ce..3e2ae92 100644 --- a/src/components/Footer.tsx +++ b/src/components/Footer.tsx @@ -1,6 +1,6 @@ import styled from '@emotion/styled'; import GitHubIcon from '@mui/icons-material/GitHub'; -import { Link, SvgIcon, Typography } from '@mui/material'; +import { Link, Typography } from '@mui/material'; import { ReactElement } from 'react'; const StyledFooterRow = styled.div` diff --git a/src/components/approvallist/ApprovalList.tsx b/src/components/approvallist/ApprovalList.tsx index a1a8867..513b5e7 100644 --- a/src/components/approvallist/ApprovalList.tsx +++ b/src/components/approvallist/ApprovalList.tsx @@ -1,16 +1,13 @@ -import { Button } from '@mui/material'; import { observer } from 'mobx-react'; -import { useContext, useState } from 'react'; +import { useContext } from 'react'; import { StoreContext } from '../../stores/StoreContextProvider'; -import { ApprovalDialog } from '../ApprovalDialog'; import { ApprovalEntry } from './ApprovalEntry'; import { ApprovalHeader } from './ApprovalHeader'; export const ApprovalList = observer(() => { const { uiStore } = useContext(StoreContext); - const [approvalDialogOpen, setApprovalDialogOpen] = useState(false); const approvals = uiStore.filteredApprovals; return ( diff --git a/src/stores/ui/UIStore.ts b/src/stores/ui/UIStore.ts index 25bd0a9..13d8261 100644 --- a/src/stores/ui/UIStore.ts +++ b/src/stores/ui/UIStore.ts @@ -4,7 +4,7 @@ import { action, computed, makeObservable, observable } from 'mobx'; import { UNLIMITED_ALLOWANCE } from '../../constants'; import { fromWei, toWei } from '../../utils/wei'; -import { AccumulatedApproval, Transaction } from '../transactions/TransactionStore'; +import { AccumulatedApproval } from '../transactions/TransactionStore'; export class UIApprovalEntry { tokenAddress: string;