Remove onUpdateTeam from TeamList
This commit is contained in:
parent
0f0ba81795
commit
d5cb6b92b6
@ -7,17 +7,15 @@ import {TeamActions} from './TeamActions'
|
|||||||
import {TeamEditor} from './TeamEditor'
|
import {TeamEditor} from './TeamEditor'
|
||||||
|
|
||||||
export interface ITeamListProps {
|
export interface ITeamListProps {
|
||||||
teamsById: TReadonlyRecord<number, ITeam>,
|
teamsById: TReadonlyRecord<number, ITeam>
|
||||||
teamIds: ReadonlyArray<number>,
|
teamIds: ReadonlyArray<number>
|
||||||
onAddTeam: TeamActions['createTeam']
|
onAddTeam: TeamActions['createTeam']
|
||||||
onRemoveTeam: TeamActions['removeTeam']
|
onRemoveTeam: TeamActions['removeTeam']
|
||||||
onUpdateTeam: TeamActions['updateTeam']
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ITeamProps {
|
export interface ITeamProps {
|
||||||
team: ITeam
|
team: ITeam
|
||||||
onRemoveTeam: TeamActions['removeTeam']
|
onRemoveTeam: TeamActions['removeTeam']
|
||||||
onUpdateTeam: TeamActions['updateTeam']
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export class TeamRow extends React.PureComponent<ITeamProps> {
|
export class TeamRow extends React.PureComponent<ITeamProps> {
|
||||||
@ -76,7 +74,6 @@ export class TeamList extends React.PureComponent<ITeamListProps> {
|
|||||||
<PanelBlock key={team.id}>
|
<PanelBlock key={team.id}>
|
||||||
<TeamRow
|
<TeamRow
|
||||||
onRemoveTeam={this.props.onRemoveTeam}
|
onRemoveTeam={this.props.onRemoveTeam}
|
||||||
onUpdateTeam={this.props.onUpdateTeam}
|
|
||||||
team={team}
|
team={team}
|
||||||
/>
|
/>
|
||||||
</PanelBlock>
|
</PanelBlock>
|
||||||
|
|||||||
@ -60,7 +60,6 @@ export class TeamManager extends React.PureComponent<ITeamManagerProps> {
|
|||||||
teamIds={this.props.teamIds}
|
teamIds={this.props.teamIds}
|
||||||
onAddTeam={this.props.createTeam}
|
onAddTeam={this.props.createTeam}
|
||||||
onRemoveTeam={this.props.removeTeam}
|
onRemoveTeam={this.props.removeTeam}
|
||||||
onUpdateTeam={this.props.updateTeam}
|
|
||||||
/>
|
/>
|
||||||
</>
|
</>
|
||||||
}/>
|
}/>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user