diff --git a/package.json b/package.json index 0510bfe..8b9bc2f 100644 --- a/package.json +++ b/package.json @@ -23,12 +23,12 @@ ] }, "devDependencies": { - "lerna": "^4.0.0", + "@babel/eslint-parser": "^7.15.8", + "@babel/plugin-proposal-class-properties": "^7.14.5", + "@babel/plugin-transform-react-jsx": "^7.14.9", "commitizen": "^4.2.4", "conventional-github-releaser": "^3.1.2", "cz-lerna-changelog": "^2.0.3", - "@babel/plugin-proposal-class-properties": "^7.14.5", - "@babel/plugin-transform-react-jsx": "^7.14.9", "eslint": "^7.32.0", "eslint-config-airbnb": "^18.2.1", "eslint-import-resolver-alias": "^1.1.2", @@ -36,9 +36,10 @@ "eslint-plugin-jsx-a11y": "^6.4.1", "eslint-plugin-react": "^7.26.1", "eslint-plugin-react-hooks": "^4.2.0", + "lerna": "^4.0.0", "react-app-rewire-aliases": "^0.2.0", "react-app-rewired": "^2.1.8", - "@babel/eslint-parser": "^7.15.8", + "react-error-overlay": "^6.0.9", "supertest": "^6.1.6" }, "config": { diff --git a/packages/client/src/components/IconBox/index.js b/packages/client/src/components/IconBox/index.js index 264ebf0..d4d4d76 100644 --- a/packages/client/src/components/IconBox/index.js +++ b/packages/client/src/components/IconBox/index.js @@ -48,7 +48,7 @@ IconBox.propTypes = { /** * Additional Icon */ - icon: PropTypes.objectOf(PropTypes.any), + icon: PropTypes.node, /** * Additional icon true false */ diff --git a/packages/client/src/container/CRUD/Permission/PermissionItem.js b/packages/client/src/container/CRUD/Permission/PermissionItem.js index 9b25d25..be147fa 100644 --- a/packages/client/src/container/CRUD/Permission/PermissionItem.js +++ b/packages/client/src/container/CRUD/Permission/PermissionItem.js @@ -1,6 +1,5 @@ /* eslint-disable no-nested-ternary */ import React from 'react'; -import PropTypes from 'prop-types'; // import ReactTooltip from 'react-tooltip'; import { cloneDeep, isEmpty } from 'lodash'; import { Icons } from '@dhiwise/icons'; @@ -181,22 +180,3 @@ function PermissionItem(props) { ); } export default PermissionItem; -PermissionItem.propTypes = { - /** - * display title - */ - title: PropTypes.string.isRequired, - /** - * permission object - */ - permission: PropTypes.objectOf(PropTypes.any), - /** - * function to change checkbox selection - */ - onChange: PropTypes.func.isRequired, - /** - * set of permission actions - */ - permissionSet: PropTypes.objectOf(PropTypes.any).isRequired, - -};