diff --git a/apps/widget-configurator/src/app/app.spec.tsx b/apps/widget-configurator/src/app/app.spec.tsx deleted file mode 100644 index 1ea8da5bb1..0000000000 --- a/apps/widget-configurator/src/app/app.spec.tsx +++ /dev/null @@ -1,15 +0,0 @@ -import { render } from '@testing-library/react' - -import App from './app' - -describe('App', () => { - it('should render successfully', () => { - const { baseElement } = render() - expect(baseElement).toBeTruthy() - }) - - it('should have a greeting as the title', () => { - const { getByText } = render() - expect(getByText(/Welcome widget-configurator/gi)).toBeTruthy() - }) -}) diff --git a/apps/widget-configurator/src/app/configurator/index.tsx b/apps/widget-configurator/src/app/configurator/index.tsx index 8506ec13bc..f393dc237a 100644 --- a/apps/widget-configurator/src/app/configurator/index.tsx +++ b/apps/widget-configurator/src/app/configurator/index.tsx @@ -21,6 +21,7 @@ import ListItemText from '@mui/material/ListItemText' // import SaveIcon from '@mui/icons-material/Save' import WalletIcon from '@mui/icons-material/Wallet' import LoadingButton from '@mui/lab/LoadingButton' +import { SyntheticEvent } from 'react' enum TradeMode { Swap = 1, @@ -165,7 +166,7 @@ export function Configurator({ title }: { title: string }) { { + onChange={(event: SyntheticEvent, newValue: { chainID: number; label: string } | null) => { setNetwork(newValue || NetworkOptions[0]) }} getOptionLabel={(option) => option.label} @@ -179,7 +180,7 @@ export function Configurator({ title }: { title: string }) { { + onChange={(event: SyntheticEvent, newValue: string | null) => { setSellToken(newValue) }} inputValue={sellToken || ''} @@ -202,7 +203,7 @@ export function Configurator({ title }: { title: string }) { { + onChange={(event: SyntheticEvent, newValue: string | null) => { setBuyToken(newValue) }} inputValue={buyToken || ''}