-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Admin Next Team Create #820
Conversation
b9e8ec2
to
53e1ea1
Compare
53e1ea1
to
d7e6b4c
Compare
isSeeded: false | ||
}, | ||
seed: 0 | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is the issue with the single type definition. Not everywhere uses all the parts of the type. A follow up PR will generate types from the Query
@@ -33,12 +35,13 @@ class TeamList extends React.Component<Props> { | |||
{teams.map((t: Team) => <TeamListItem key={t.id} team={t}/>)} | |||
</TableBody> | |||
</Table> | |||
<ActionButton onClick={() => this.props.history.push("/teams/new")}/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Eventually this will probably be a speed dial floating button that expands to multiple actions like import and export
https://material-ui.com/lab/speed-dial/
); | ||
} else { | ||
return null; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is an open issue to fix the types so that typescript knows that Theme will be present when withTheme: true is passed
part of #750
This PR adds the team create mutation and form for a new team. Code re-use went pretty well but this work exposed issues with the manually defined types (this will be addressed in the next PR).