Skip to content

Commit

Permalink
style: types fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Sciator committed Feb 10, 2021
1 parent e645c03 commit e57bfd2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
9 changes: 3 additions & 6 deletions giraffe/src/components/SizedTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import React, {FunctionComponent, CSSProperties} from 'react'

import {
GaugeLayerConfig,
GaugeMiniLayerConfig,
SizedConfig,
TableGraphLayerConfig,
LayerTypes,
Expand Down Expand Up @@ -89,16 +88,14 @@ export const SizedTable: FunctionComponent<Props> = ({
key={layerIndex}
table={newTableFromConfig(config)}
columns={
getGaugeMiniBarsDefinitions(
(layerConfig as Required<GaugeMiniLayerConfig>)
.barsDefinitions
).groupByColumns
getGaugeMiniBarsDefinitions(layerConfig.barsDefinitions)
.groupByColumns
}
>
{latestValues => (
<GaugeMiniLayer
values={latestValues}
theme={layerConfig as Required<GaugeMiniLayerConfig>}
theme={layerConfig}
/>
)}
</LatestMultipleValueTransform>
Expand Down
2 changes: 1 addition & 1 deletion giraffe/src/constants/gaugeMiniStyles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export const GAUGE_MINI_THEME_PROGRESS_DARK: Required<GaugeMiniLayerConfig> = {
valueFontColorOutside: InfluxColors.Cloud,
valueFormater: {},

axesSteps: undefined as any,
axesSteps: undefined,
axesFontSize: 11,
axesFontColor: InfluxColors.Forge,
axesFormater: {},
Expand Down
4 changes: 1 addition & 3 deletions stories/src/gaugeMini.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ import {
GAUGE_MINI_THEME_BULLET_DARK,
GAUGE_MINI_THEME_PROGRESS_DARK,
} from '../../giraffe/src/constants/gaugeMiniStyles'
// import {gaugeTable as gaugeMiniTable} from './data/gaugeLayer'
import {gaugeMiniTable, gaugeMiniTableGetField} from './data/gaugeMiniLayer'
import {range} from 'd3-array'
import {gaugeMiniTable} from './data/gaugeMiniLayer'

type Theme = Required<GaugeMiniLayerConfig>

Expand Down

0 comments on commit e57bfd2

Please sign in to comment.