Skip to content

Commit

Permalink
feat(radial-bar): isolate polar axes components in their own folder t…
Browse files Browse the repository at this point in the history
…o easily move them to a dedicated package
  • Loading branch information
plouc committed Sep 11, 2021
1 parent 3ac27b1 commit ab8e259
Show file tree
Hide file tree
Showing 10 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions packages/radial-bar/src/RadialBar.tsx
Expand Up @@ -6,9 +6,8 @@ import { RadialBarLayerId, RadialBarSvgProps, ComputedBar, RadialBarDatum } from
import { svgDefaultProps } from './props'
import { useRadialBar } from './hooks'
import { RadialBarArcs } from './RadialBarArcs'
import { PolarGrid } from './polar_grid'
import { PolarGrid, RadialAxis } from './polar-axes'
import { RadialBarTracks } from './RadialBarTracks'
import { RadialAxis } from './radial_axis'
import { defaultProps } from '@nivo/pie'

type InnerRadialBarProps<D extends RadialBarDatum = RadialBarDatum> = Omit<
Expand Down
@@ -1,2 +1,3 @@
export * from './PolarGrid'
export * from './RadialAxis'
export * from './types'
File renamed without changes.
1 change: 0 additions & 1 deletion packages/radial-bar/src/polar_grid/index.ts

This file was deleted.

2 changes: 1 addition & 1 deletion packages/radial-bar/src/types.ts
Expand Up @@ -11,7 +11,7 @@ import {
import { Arc, ArcGenerator, ArcLabelsProps, ArcTransitionMode } from '@nivo/arcs'
import { InheritedColorConfig, OrdinalColorScaleConfig } from '@nivo/colors'
import { LegendProps } from '@nivo/legends'
import { RadialAxisConfig } from './radial_axis'
import { RadialAxisConfig } from './polar-axes'

export interface RadialBarDatum {
x: string
Expand Down

0 comments on commit ab8e259

Please sign in to comment.