refactor: fix all eslint warnings (#6502)

This commit is contained in:
Joshua Chen 2022-01-29 13:21:40 +08:00 committed by GitHub
parent c1e3801ee7
commit 4f2b09fe32
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 24 additions and 10 deletions

View file

@ -46,6 +46,7 @@ function Details({summary, children, ...props}: DetailsProps): JSX.Element {
const [open, setOpen] = useState(props.open);
return (
// eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-noninteractive-element-interactions
<details
{...props}
ref={detailsRef}