mirror of
https://github.com/yldio/copilot.git
synced 2024-11-13 06:40:06 +02:00
fixing proptype validation on people components
This commit is contained in:
parent
05c04a15a1
commit
2e873796aa
@ -1,6 +1,5 @@
|
|||||||
const React = require('react');
|
const React = require('react');
|
||||||
|
|
||||||
const PropTypes = require('@root/prop-types');
|
|
||||||
const Row = require('@ui/components/row');
|
const Row = require('@ui/components/row');
|
||||||
const Column = require('@ui/components/column');
|
const Column = require('@ui/components/column');
|
||||||
const Button = require('@ui/components/button');
|
const Button = require('@ui/components/button');
|
||||||
@ -49,8 +48,8 @@ const People = (props) => {
|
|||||||
|
|
||||||
People.propTypes = {
|
People.propTypes = {
|
||||||
handleToggle: React.PropTypes.func,
|
handleToggle: React.PropTypes.func,
|
||||||
orgUI: React.PropTypes.obj,
|
orgUI: React.PropTypes.object,
|
||||||
people: React.PropTypes.arrayOf(PropTypes.person)
|
people: React.PropTypes.array
|
||||||
};
|
};
|
||||||
|
|
||||||
module.exports = People;
|
module.exports = People;
|
@ -1,12 +1,12 @@
|
|||||||
const React = require('react');
|
const React = require('react');
|
||||||
|
|
||||||
const PropTypes = require('@root/prop-types');
|
|
||||||
const Table = require('@ui/components/table-data-table');
|
const Table = require('@ui/components/table-data-table');
|
||||||
const Checkbox = require('@ui/components/checkbox');
|
const Checkbox = require('@ui/components/checkbox');
|
||||||
|
|
||||||
const PeopleTable = ({
|
const PeopleTable = ({
|
||||||
people = []
|
people = []
|
||||||
}) => {
|
}) => {
|
||||||
|
|
||||||
const columns = [{
|
const columns = [{
|
||||||
title: <Checkbox />,
|
title: <Checkbox />,
|
||||||
width: '5%'
|
width: '5%'
|
||||||
@ -41,7 +41,7 @@ const PeopleTable = ({
|
|||||||
};
|
};
|
||||||
|
|
||||||
PeopleTable.propTypes = {
|
PeopleTable.propTypes = {
|
||||||
people: React.PropTypes.arrayOf(PropTypes.person)
|
people: React.PropTypes.array
|
||||||
};
|
};
|
||||||
|
|
||||||
module.exports = PeopleTable;
|
module.exports = PeopleTable;
|
Loading…
Reference in New Issue
Block a user