diff --git a/src/view/components/AddressAccountSelect/index.tsx b/src/view/components/AddressAccountSelect/index.tsx index 29fe997f..0e918e08 100644 --- a/src/view/components/AddressAccountSelect/index.tsx +++ b/src/view/components/AddressAccountSelect/index.tsx @@ -35,7 +35,7 @@ export function AddressAccountSelect({ onChange(event.target.value)} + onChange={event => onChange(event.target.value as string)} renderValue={selected => { if (!accounts) return diff --git a/src/view/components/AddressAccountSelect/styled.ts b/src/view/components/AddressAccountSelect/styled.ts index 403e8338..29d1be28 100644 --- a/src/view/components/AddressAccountSelect/styled.ts +++ b/src/view/components/AddressAccountSelect/styled.ts @@ -1,7 +1,7 @@ -import { Select } from '@mui/material' +import { Select, SelectProps } from '@mui/material' import { styled } from '@mui/material/styles' -export const StyledSelect = styled(Select)(({ theme }) => ({ +export const StyledSelect = styled(Select)(({ theme }) => ({ '& .MuiSelect-root:hover': { borderColor: 'red' }, diff --git a/src/view/components/FactoryInputArgument/ArgBooleanSelect.tsx b/src/view/components/FactoryInputArgument/ArgBooleanSelect.tsx index 4667894b..c35fb351 100644 --- a/src/view/components/FactoryInputArgument/ArgBooleanSelect.tsx +++ b/src/view/components/FactoryInputArgument/ArgBooleanSelect.tsx @@ -12,7 +12,7 @@ export function ArgBooleanSelect({ onChange, label }: BooleanSelectProps) { - const handleChange = (event: SelectChangeEvent) => { + const handleChange = (event: SelectChangeEvent) => { onChange(event.target.value === 'true') }