Commit e0451690 by Johannes Schill

wip: panel-header: Avoid null returning to get better code readability. High five @ peterholmberg

parent a3f1a1c6
...@@ -40,11 +40,11 @@ export class PanelHeader extends PureComponent<Props> { ...@@ -40,11 +40,11 @@ export class PanelHeader extends PureComponent<Props> {
</span> </span>
<PanelHeaderMenu panel={panel} dashboard={dashboard} /> <PanelHeaderMenu panel={panel} dashboard={dashboard} />
{timeInfo ? ( {timeInfo && (
<span className="panel-time-info"> <span className="panel-time-info">
<i className="fa fa-clock-o" /> {timeInfo} <i className="fa fa-clock-o" /> {timeInfo}
</span> </span>
) : null} )}
</div> </div>
</div> </div>
</div> </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment