From 32ce77e44232e3764a3a027b227cc3474f9602dc Mon Sep 17 00:00:00 2001 From: John Lyon-Smith Date: Tue, 27 Mar 2018 12:45:11 -0700 Subject: [PATCH] Add test data to team form --- website/src/Teams/TeamForm.js | 34 ++++++++++++++++++++-------------- 1 file changed, 20 insertions(+), 14 deletions(-) diff --git a/website/src/Teams/TeamForm.js b/website/src/Teams/TeamForm.js index 93d2082..82e1072 100644 --- a/website/src/Teams/TeamForm.js +++ b/website/src/Teams/TeamForm.js @@ -35,8 +35,15 @@ export class TeamForm extends React.Component { constructor(props) { super(props) + + this.users = [ + { id: 0, name: 'Meryll Streep' }, + { id: 1, name: 'Scarlett Johansenn' }, + { id: 2, name: 'John Lyon-Smith' }, + ] + this.state = { - binder: new FormBinder(this.props.team, TeamForm.bindings, this.props.onModifiedChanged) + binder: new FormBinder(props.team, TeamForm.bindings, this.props.onModifiedChanged) } } @@ -71,25 +78,24 @@ export class TeamForm extends React.Component { } render() { - const { team } = this.props const { binder } = this.state return (
- - - - + + + + - + - - ( + + ( - + {item.name} )} /> @@ -111,10 +117,10 @@ export class TeamForm extends React.Component { - - - - + + + +