Fix code style
This commit is contained in:
@@ -38,7 +38,7 @@ function ChartPreview(props: Props) {
|
||||
|
||||
const hasEnoughDataToDisplayDiagrams = props.treeNode.messageHistory.count() > 1
|
||||
|
||||
let preview = hasEnoughDataToDisplayDiagrams ? (
|
||||
const addChartToPanelButton = hasEnoughDataToDisplayDiagrams ? (
|
||||
<Tooltip title="Click to add to chart panel">
|
||||
<ShowChart
|
||||
ref={chartIconRef}
|
||||
@@ -56,7 +56,7 @@ function ChartPreview(props: Props) {
|
||||
|
||||
return (
|
||||
<span>
|
||||
{preview}
|
||||
{addChartToPanelButton}
|
||||
<Popper open={open} anchorEl={chartIconRef.current} placement="left-end">
|
||||
<Fade in={open} timeout={300}>
|
||||
<Paper style={{ width: '300px' }}>
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import * as q from '../../../../backend/src/Model'
|
||||
import * as React from 'react'
|
||||
import DateFormatter from '../helper/DateFormatter'
|
||||
import { default as ReactResizeDetector } from 'react-resize-detector'
|
||||
|
||||
Reference in New Issue
Block a user