Skip to content

Commit

Permalink
fine-tuning on @nivo/bar imports and types
Browse files Browse the repository at this point in the history
  • Loading branch information
tkonopka committed May 17, 2022
1 parent 7930c71 commit b07d3c9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/bar/src/Bar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import {
useMotionConfig,
} from '@nivo/core'
import { Fragment, ReactNode, createElement, useMemo } from 'react'
import { defaultProps, svgDefaultProps } from './props'
import { svgDefaultProps } from './props'
import { useTransition } from '@react-spring/web'
import { useBar } from './hooks'

Expand Down Expand Up @@ -61,10 +61,10 @@ const InnerBar = <RawDatum extends BarDatum>({
layers = svgDefaultProps.layers as BarLayer<RawDatum>[],
barComponent = svgDefaultProps.barComponent,

enableLabel = defaultProps.enableLabel,
enableLabel = svgDefaultProps.enableLabel,
label,
labelSkipWidth = defaultProps.labelSkipWidth,
labelSkipHeight = defaultProps.labelSkipHeight,
labelSkipWidth = svgDefaultProps.labelSkipWidth,
labelSkipHeight = svgDefaultProps.labelSkipHeight,
labelTextColor,

markers = svgDefaultProps.markers,
Expand Down
2 changes: 2 additions & 0 deletions packages/bar/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ interface BarCustomLayerBaseProps<RawDatum>

isFocusable: boolean

getTooltipLabel: (datum: ComputedDatum<RawDatum>) => string | number

xScale: AnyScale
yScale: AnyScale
}
Expand Down

0 comments on commit b07d3c9

Please sign in to comment.