Fix code style

This commit is contained in:
Thomas Nordquist
2019-06-16 19:25:50 +02:00
parent 0ebb6f4424
commit 1884f3baae
3 changed files with 5 additions and 4 deletions

View File

@@ -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',
} }

View File

@@ -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' }}>

View File

@@ -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'