Skip to content

Commit

Permalink
refactor: move storybook progress utils
Browse files Browse the repository at this point in the history
  • Loading branch information
anuraghazra committed Oct 1, 2020
1 parent 3f820e5 commit c84a846
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
5 changes: 4 additions & 1 deletion src/meter/__examples__/stories/CircularMeter.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ import { Meta } from "@storybook/react";

import { Meter } from "../../Meter";
import { useMeterState } from "../../index";
import { useFakeProgression, createCircularExample } from "../../../utils";
import {
useFakeProgression,
createCircularExample,
} from "../../../progress/stories/storybook-progress-utils";

export default {
title: "Component/Meter/Circular",
Expand Down
5 changes: 4 additions & 1 deletion src/progress/stories/CircularProgress.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ import { Meta } from "@storybook/react";

import { Progress } from "../Progress";
import { useProgressState } from "../ProgressState";
import { useFakeProgression, createCircularExample } from "../../utils";
import {
useFakeProgression,
createCircularExample,
} from "./storybook-progress-utils";

export default {
title: "Component/Progress/Circular",
Expand Down
2 changes: 1 addition & 1 deletion src/progress/stories/LinearProgress.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
generateStripe,
progressBarStyle,
createLinearExamples,
} from "../../utils";
} from "./storybook-progress-utils";

export default {
title: "Component/Progress/Linear",
Expand Down
File renamed without changes.
2 changes: 0 additions & 2 deletions src/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,3 @@ export function clampValue(value: number, min: number, max: number) {

return Math.min(Math.max(value, min), max);
}

export * from "./storybook";

0 comments on commit c84a846

Please sign in to comment.