From 3c2c16dbafb30da13bd3cfdb55f462ebe916c396 Mon Sep 17 00:00:00 2001 From: Shiv Date: Fri, 8 Jan 2021 19:52:01 +0530 Subject: [PATCH] minor linting changes --- package.json | 2 +- src/basic/Accordion.js | 9 ++++----- src/utils/index.js | 9 +++++---- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/package.json b/package.json index e5a68258a..9d09e01c5 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,7 @@ "node_modules/(?!react-native|@shoutem|react-clone-referenced-element|native-base-shoutem-theme)" ] }, - "version": "2.15.0", + "version": "2.15.1", "license": "Apache-2.0", "private": false, "dependencies": { diff --git a/src/basic/Accordion.js b/src/basic/Accordion.js index da5449984..994b5e55f 100644 --- a/src/basic/Accordion.js +++ b/src/basic/Accordion.js @@ -55,8 +55,7 @@ class DefaultHeader extends React.Component { : { color: variables.expandedIconStyle } : icon && iconStyle ? iconStyle - : { color: disable ? variable.disableRow : variables.iconStyle }, - + : { color: disable ? variable.disableRow : variables.iconStyle } ]} name={ expanded ? expandedIcon || 'ios-arrow-up' : icon || 'ios-arrow-down' @@ -175,13 +174,14 @@ export class Accordion extends React.Component { super(props); const { expanded, expandMultiple } = this.props; + // eslint-disable-next-line no-unused-vars let selected; if (expanded !== undefined && expanded !== null) { selected = Array.isArray(expanded) ? expanded : [expanded]; selected = expandMultiple ? selected : selected.slice(0, 1); } this.state = { - selected: props.expanded, + selected: props.expanded }; } @@ -230,7 +230,7 @@ export class Accordion extends React.Component { keyExtractor={(item, index) => String(index)} renderItem={({ item, index }) => ( this.setSelected(i)} /> )} {...this.props} diff --git a/src/utils/index.js b/src/utils/index.js index f893d0c75..6b1ab1a70 100644 --- a/src/utils/index.js +++ b/src/utils/index.js @@ -3,8 +3,9 @@ import PropTypes from 'prop-types'; import InteractionManager from './interactionManager'; const ViewPropTypes = { - style: PropTypes.shape({ - style: PropTypes.any, - }) -} + style: PropTypes.shape({ + // eslint-disable-next-line react/forbid-prop-types + style: PropTypes.any + }) +}; export { InteractionManager, ViewPropTypes };