1
0
mirror of https://github.com/yldio/copilot.git synced 2024-12-29 05:10:05 +02:00

fixing proptype validation on people components

This commit is contained in:
Alex Windett 2017-01-23 17:14:55 +00:00
parent 05c04a15a1
commit 2e873796aa
2 changed files with 4 additions and 5 deletions

View File

@ -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;

View File

@ -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;