aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/issues/sidebar/CreationDateFacet.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/apps/issues/sidebar/CreationDateFacet.js')
-rw-r--r--server/sonar-web/src/main/js/apps/issues/sidebar/CreationDateFacet.js36
1 files changed, 21 insertions, 15 deletions
diff --git a/server/sonar-web/src/main/js/apps/issues/sidebar/CreationDateFacet.js b/server/sonar-web/src/main/js/apps/issues/sidebar/CreationDateFacet.js
index 95174567951..721c9c75e88 100644
--- a/server/sonar-web/src/main/js/apps/issues/sidebar/CreationDateFacet.js
+++ b/server/sonar-web/src/main/js/apps/issues/sidebar/CreationDateFacet.js
@@ -227,47 +227,53 @@ export default class CreationDateFacet extends React.PureComponent {
onClick={this.handlePeriodClick}
value=""
/>
- {component == null &&
+ {component == null && (
<FacetItem
active={createdInLast === '1w'}
name={translate('issues.facet.createdAt.last_week')}
onClick={this.handlePeriodClick}
value="1w"
- />}
- {component == null &&
+ />
+ )}
+ {component == null && (
<FacetItem
active={createdInLast === '1m'}
name={translate('issues.facet.createdAt.last_month')}
onClick={this.handlePeriodClick}
value="1m"
- />}
- {component == null &&
+ />
+ )}
+ {component == null && (
<FacetItem
active={createdInLast === '1y'}
name={translate('issues.facet.createdAt.last_year')}
onClick={this.handlePeriodClick}
value="1y"
- />}
- {component != null &&
+ />
+ )}
+ {component != null && (
<FacetItem
active={sinceLeakPeriod}
name={translate('issues.leak_period')}
onClick={this.handleLeakPeriodClick}
value=""
- />}
+ />
+ )}
</div>
);
}
renderInner() {
const { createdAt } = this.props;
- return createdAt
- ? this.renderExactDate()
- : <div>
- {this.renderBarChart()}
- {this.renderPeriodSelectors()}
- {this.renderPredefinedPeriods()}
- </div>;
+ return createdAt ? (
+ this.renderExactDate()
+ ) : (
+ <div>
+ {this.renderBarChart()}
+ {this.renderPeriodSelectors()}
+ {this.renderPredefinedPeriods()}
+ </div>
+ );
}
render() {