mirror of
https://github.com/desktop/desktop
synced 2024-09-12 21:01:16 +00:00
Fix violations
This commit is contained in:
parent
a1d5641787
commit
11d61e6f99
|
@ -68,7 +68,7 @@ export class CodeMirrorHost extends React.Component<ICodeMirrorHostProps, void>
|
|||
}
|
||||
}
|
||||
|
||||
public shouldComponentUpdate(nextProps: ICodeMirrorHostProps, nextState: void) {
|
||||
public shouldComponentUpdate(nextProps: ICodeMirrorHostProps) {
|
||||
// NB This is the only time we actually have to re-render.
|
||||
// Updating of values is done in componentWillReceiveProps,
|
||||
// all event handlers are marshalled through private non-changing
|
||||
|
|
|
@ -29,7 +29,7 @@ export class CommitListItem extends React.Component<ICommitProps, void> {
|
|||
)
|
||||
}
|
||||
|
||||
public shouldComponentUpdate(nextProps: ICommitProps, nextState: void): boolean {
|
||||
public shouldComponentUpdate(nextProps: ICommitProps): boolean {
|
||||
return (
|
||||
this.props.commit.sha !== nextProps.commit.sha ||
|
||||
this.props.avatarURL !== nextProps.avatarURL
|
||||
|
|
|
@ -40,7 +40,7 @@ export class Octicon extends React.Component<IOcticonProps, void> {
|
|||
symbol: OcticonSymbol.markGithub,
|
||||
}
|
||||
|
||||
public shouldComponentUpdate(nextProps: IOcticonProps, nextState: void) {
|
||||
public shouldComponentUpdate(nextProps: IOcticonProps) {
|
||||
|
||||
if (nextProps.symbol.w !== this.props.symbol.w ||
|
||||
nextProps.symbol.h !== this.props.symbol.h ||
|
||||
|
|
|
@ -27,7 +27,7 @@ export class RepositoryListItem extends React.Component<IRepositoryListItemProps
|
|||
)
|
||||
}
|
||||
|
||||
public shouldComponentUpdate(nextProps: IRepositoryListItemProps, nextState: void): boolean {
|
||||
public shouldComponentUpdate(nextProps: IRepositoryListItemProps): boolean {
|
||||
if (nextProps.repository instanceof Repository && this.props.repository instanceof Repository) {
|
||||
return nextProps.repository.id !== this.props.repository.id
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue