Skip to content

Commit a0a5a5b

Browse files
fix type errors
1 parent acd90e3 commit a0a5a5b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/Checkboxes.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { useEffect, useState } from 'react'
1+
import React, { ChangeEvent, useEffect, useState } from 'react'
22
import { v4 } from 'uuid'
33

44
import styles from '../styles/Checkboxes.module.css'
@@ -28,7 +28,7 @@ const Checkboxes = ({
2828

2929
const uuid = v4()
3030

31-
const onSelectionChange = (e) => {
31+
const onSelectionChange = (e: ChangeEvent<HTMLInputElement>) => {
3232
const index = parseInt((e.target as HTMLInputElement).value)
3333
const clonedSelectedOptions = Array.from(selectedOptions)
3434
clonedSelectedOptions[index] = !clonedSelectedOptions[index]

0 commit comments

Comments
 (0)