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