mirror of
https://github.com/yldio/copilot.git
synced 2024-11-10 21:30: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 PropTypes = require('@root/prop-types');
|
||||
const Row = require('@ui/components/row');
|
||||
const Column = require('@ui/components/column');
|
||||
const Button = require('@ui/components/button');
|
||||
@ -49,8 +48,8 @@ const People = (props) => {
|
||||
|
||||
People.propTypes = {
|
||||
handleToggle: React.PropTypes.func,
|
||||
orgUI: React.PropTypes.obj,
|
||||
people: React.PropTypes.arrayOf(PropTypes.person)
|
||||
orgUI: React.PropTypes.object,
|
||||
people: React.PropTypes.array
|
||||
};
|
||||
|
||||
module.exports = People;
|
@ -1,12 +1,12 @@
|
||||
const React = require('react');
|
||||
|
||||
const PropTypes = require('@root/prop-types');
|
||||
const Table = require('@ui/components/table-data-table');
|
||||
const Checkbox = require('@ui/components/checkbox');
|
||||
|
||||
const PeopleTable = ({
|
||||
people = []
|
||||
}) => {
|
||||
|
||||
const columns = [{
|
||||
title: <Checkbox />,
|
||||
width: '5%'
|
||||
@ -41,7 +41,7 @@ const PeopleTable = ({
|
||||
};
|
||||
|
||||
PeopleTable.propTypes = {
|
||||
people: React.PropTypes.arrayOf(PropTypes.person)
|
||||
people: React.PropTypes.array
|
||||
};
|
||||
|
||||
module.exports = PeopleTable;
|
Loading…
Reference in New Issue
Block a user