diff --git a/.eslintrc.js b/.eslintrc.js index a04682d4..4e67e387 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -18,6 +18,7 @@ module.exports = { 'react/jsx-filename-extension': [1, { extensions: ['.js', '.jsx'] }], 'react/jsx-props-no-spreading': 'off', 'react/forbid-prop-types': 'off', + 'jsx-a11y/click-events-have-key-events': 'off', 'import/no-extraneous-dependencies': ["error", {"devDependencies": ["**/*.js","**/*.test.js", "**/*.spec.js"]}] }, }; diff --git a/src/components/Carousel/index.js b/src/components/Carousel/index.js index 3ce4e00f..32828ac0 100644 --- a/src/components/Carousel/index.js +++ b/src/components/Carousel/index.js @@ -1,4 +1,6 @@ /* eslint-disable react/prop-types */ +/* eslint-disable jsx-a11y/no-noninteractive-element-interactions */ + import React from 'react'; import { isDesktop, isTablet } from 'react-device-detect'; import Carousel from 'react-multi-carousel'; @@ -16,8 +18,8 @@ const CustomDot = ({ onClick, active }) => { className={`${classes.dot} ${ active ? classes.dotActive : classes.dotInactive }`} - onClick={() => onClick()} - > + onClick={onClick} + /> ); }; @@ -25,6 +27,7 @@ const CustomLeft = ({ onClick }) => { const classes = useStyles(); return (