Remove unnecessary else statements and default props
parent
13cc0ae547
commit
f116adcfff
|
@ -146,9 +146,8 @@ class DashboardIndex extends PureComponent<Props, State> {
|
|||
const {limitStatus} = this.props
|
||||
if (limitStatus === LimitStatus.EXCEEDED) {
|
||||
return ComponentStatus.Disabled
|
||||
} else {
|
||||
return ComponentStatus.Default
|
||||
}
|
||||
return ComponentStatus.Default
|
||||
}
|
||||
|
||||
private get addResourceTitleText(): string {
|
||||
|
|
|
@ -13,9 +13,6 @@ interface OwnProps {
|
|||
onSelectImport: () => void
|
||||
onSelectTemplate?: () => void
|
||||
resourceName: string
|
||||
canImportFromTemplate?: boolean
|
||||
status?: ComponentStatus
|
||||
titleText?: string
|
||||
}
|
||||
|
||||
interface DefaultProps {
|
||||
|
|
|
@ -110,9 +110,8 @@ export default class TasksHeader extends PureComponent<Props> {
|
|||
const {limitStatus} = this.props
|
||||
if (limitStatus === LimitStatus.EXCEEDED) {
|
||||
return ComponentStatus.Disabled
|
||||
} else {
|
||||
return ComponentStatus.Default
|
||||
}
|
||||
return ComponentStatus.Default
|
||||
}
|
||||
|
||||
private get addResourceTitleText(): string {
|
||||
|
|
Loading…
Reference in New Issue