1
0
mirror of https://github.com/yldio/copilot.git synced 2024-11-28 22:20:06 +02:00

updating UI props name to be more generic for future use

This commit is contained in:
Alex Windett 2017-01-26 14:34:06 +00:00
parent 20048eb35c
commit 46070b9b1b
3 changed files with 13 additions and 13 deletions

View File

@ -14,7 +14,7 @@ const buttonStyle = {
const People = (props) => { const People = (props) => {
const { const {
orgUI = {}, UI = {},
handleToggle, handleToggle,
people people
} = props; } = props;
@ -24,7 +24,7 @@ const People = (props) => {
<Row> <Row>
<Column smOffset={9} xs={2}> <Column smOffset={9} xs={2}>
<Button <Button
disabled={orgUI.invite_toggled} disabled={UI.invite_toggled}
onClick={handleToggle} onClick={handleToggle}
style={buttonStyle} style={buttonStyle}
> >
@ -33,7 +33,7 @@ const People = (props) => {
</Column> </Column>
</Row> </Row>
{orgUI.invite_toggled ? <Invite {...props} /> : null} {UI.invite_toggled ? <Invite {...props} /> : null}
<Row> <Row>
<Column xs={12}> <Column xs={12}>
@ -47,9 +47,9 @@ const People = (props) => {
}; };
People.propTypes = { People.propTypes = {
UI: React.PropTypes.object,
handleToggle: React.PropTypes.func, handleToggle: React.PropTypes.func,
orgUI: React.PropTypes.object, people: React.PropTypes.array,
people: React.PropTypes.array
}; };
module.exports = People; module.exports = People;

View File

@ -14,9 +14,9 @@ const PeopleTable = (props) => {
handleStatusTooltip, handleStatusTooltip,
handleMemberUpdate, handleMemberUpdate,
people = [], people = [],
orgUI = {},
parentIndex, parentIndex,
removeMember removeMember,
UI = {},
} = props; } = props;
const columns = [{ const columns = [{
@ -41,11 +41,11 @@ const PeopleTable = (props) => {
<PersonStatus <PersonStatus
handleMemberUpdate={handleMemberUpdate} handleMemberUpdate={handleMemberUpdate}
handleStatusTooltip={handleStatusTooltip} handleStatusTooltip={handleStatusTooltip}
membersStatusOptions={orgUI.members_status} membersStatusOptions={UI.members_status}
parentIndex={parentIndex} parentIndex={parentIndex}
person={person} person={person}
personIndex={index} personIndex={index}
toggledID={orgUI.member_status_tooltip} toggledID={UI.member_status_tooltip}
/> />
); );
@ -53,11 +53,11 @@ const PeopleTable = (props) => {
<PersonRole <PersonRole
handleMemberUpdate={handleMemberUpdate} handleMemberUpdate={handleMemberUpdate}
handleRoleTooltip={handleRoleTooltip} handleRoleTooltip={handleRoleTooltip}
membersRolesOptions={orgUI.members_roles} membersRolesOptions={UI.members_roles}
parentIndex={parentIndex} parentIndex={parentIndex}
person={person} person={person}
personIndex={index} personIndex={index}
toggledID={orgUI.member_role_tooltip} toggledID={UI.member_role_tooltip}
/> />
); );
@ -87,10 +87,10 @@ const PeopleTable = (props) => {
}; };
PeopleTable.propTypes = { PeopleTable.propTypes = {
UI: React.PropTypes.object,
handleMemberUpdate: React.PropTypes.func, handleMemberUpdate: React.PropTypes.func,
handleRoleTooltip: React.PropTypes.func, handleRoleTooltip: React.PropTypes.func,
handleStatusTooltip: React.PropTypes.func, handleStatusTooltip: React.PropTypes.func,
orgUI: React.PropTypes.object,
parentIndex: React.PropTypes.number, parentIndex: React.PropTypes.number,
people: React.PropTypes.array, people: React.PropTypes.array,
removeMember: React.PropTypes.func, removeMember: React.PropTypes.func,

View File

@ -37,7 +37,7 @@ const mapStateToProps = (state, {
params = {} params = {}
}) => ({ }) => ({
people: peopleByOrgIdSelector(params.org)(state), people: peopleByOrgIdSelector(params.org)(state),
orgUI: orgUISelector(state), UI: orgUISelector(state),
parentIndex: orgIndexSelector(params.org)(state), parentIndex: orgIndexSelector(params.org)(state),
platformMembers: membersSelector(state) platformMembers: membersSelector(state)
}); });