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'
|
||||
|
||||
export interface ITeamListProps {
|
||||
teamsById: TReadonlyRecord<number, ITeam>,
|
||||
teamIds: ReadonlyArray<number>,
|
||||
teamsById: TReadonlyRecord<number, ITeam>
|
||||
teamIds: ReadonlyArray<number>
|
||||
onAddTeam: TeamActions['createTeam']
|
||||
onRemoveTeam: TeamActions['removeTeam']
|
||||
onUpdateTeam: TeamActions['updateTeam']
|
||||
}
|
||||
|
||||
export interface ITeamProps {
|
||||
team: ITeam
|
||||
onRemoveTeam: TeamActions['removeTeam']
|
||||
onUpdateTeam: TeamActions['updateTeam']
|
||||
}
|
||||
|
||||
export class TeamRow extends React.PureComponent<ITeamProps> {
|
||||
@ -76,7 +74,6 @@ export class TeamList extends React.PureComponent<ITeamListProps> {
|
||||
<PanelBlock key={team.id}>
|
||||
<TeamRow
|
||||
onRemoveTeam={this.props.onRemoveTeam}
|
||||
onUpdateTeam={this.props.onUpdateTeam}
|
||||
team={team}
|
||||
/>
|
||||
</PanelBlock>
|
||||
|
||||
@ -60,7 +60,6 @@ export class TeamManager extends React.PureComponent<ITeamManagerProps> {
|
||||
teamIds={this.props.teamIds}
|
||||
onAddTeam={this.props.createTeam}
|
||||
onRemoveTeam={this.props.removeTeam}
|
||||
onUpdateTeam={this.props.updateTeam}
|
||||
/>
|
||||
</>
|
||||
}/>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user