Skip to content

Commit

Permalink
fix errors on select
Browse files Browse the repository at this point in the history
  • Loading branch information
alongoni committed Nov 16, 2023
1 parent 2dd551e commit f5528fe
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/view/components/AddressAccountSelect/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export function AddressAccountSelect({
<StyledSelect
label={label}
value={value || ''}
onChange={event => onChange(event.target.value)}
onChange={event => onChange(event.target.value as string)}
renderValue={selected => {
if (!accounts) return

Expand Down
4 changes: 2 additions & 2 deletions src/view/components/AddressAccountSelect/styled.ts
Original file line number Diff line number Diff line change
@@ -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)<SelectProps>(({ theme }) => ({
'& .MuiSelect-root:hover': {
borderColor: 'red'
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export function ArgBooleanSelect({
onChange,
label
}: BooleanSelectProps) {
const handleChange = (event: SelectChangeEvent) => {
const handleChange = (event: SelectChangeEvent<unknown>) => {
onChange(event.target.value === 'true')
}

Expand Down

0 comments on commit f5528fe

Please sign in to comment.