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> {
</span>
<PanelHeaderMenu panel={panel} dashboard={dashboard} />
{timeInfo ? (
{timeInfo && (
<span className="panel-time-info">
<i className="fa fa-clock-o" /> {timeInfo}
</span>
) : null}
)}
</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