Skip to content

Commit

Permalink
Fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
carbonrobot committed Nov 6, 2024
1 parent 065376a commit 1a1e960
Show file tree
Hide file tree
Showing 8 changed files with 34 additions and 16 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable react-hooks/rules-of-hooks */
import React, { useEffect, useState } from "react";
import type { Meta } from "@storybook/react";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable react-hooks/rules-of-hooks */
import React, { useEffect, useCallback, useRef } from "react";
import type { Meta } from "@storybook/react";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import React from "react";
import type { Meta } from "@storybook/react";

import { VictoryPolarAxis, VictoryChart, VictoryTheme } from "@/victory";
import { VictoryPolarAxis, VictoryTheme } from "@/victory";
import { Story, ComponentMeta } from "./config";
import { getData } from "../../utils/data";

const meta: Meta<typeof VictoryPolarAxis> = {
...ComponentMeta,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import React from "react";
import type { Meta } from "@storybook/react";

import { VictoryPolarAxis, VictoryChart, VictoryTheme } from "@/victory";
import { VictoryPolarAxis, VictoryTheme } from "@/victory";
import { Story, ComponentMeta } from "./config";
import { getData } from "../../utils/data";

const meta: Meta<typeof VictoryPolarAxis> = {
...ComponentMeta,
Expand All @@ -14,17 +13,37 @@ export const StartAndEndAngle: Story = {
args: {},
render: (props) => (
<>
<VictoryPolarAxis {...props} theme={VictoryTheme[props.themeKey]} startAngle={45} />
<VictoryPolarAxis {...props} theme={VictoryTheme[props.themeKey]} dependentAxis startAngle={45} />
<VictoryPolarAxis {...props} theme={VictoryTheme[props.themeKey]} endAngle={90} />
<VictoryPolarAxis {...props} theme={VictoryTheme[props.themeKey]} dependentAxis endAngle={90} />
<VictoryPolarAxis {...props} theme={VictoryTheme[props.themeKey]}

<VictoryPolarAxis
{...props}
theme={VictoryTheme[props.themeKey]}
startAngle={45}
/>
<VictoryPolarAxis
{...props}
theme={VictoryTheme[props.themeKey]}
dependentAxis
startAngle={45}
/>
<VictoryPolarAxis
{...props}
theme={VictoryTheme[props.themeKey]}
endAngle={90}
/>
<VictoryPolarAxis
{...props}
theme={VictoryTheme[props.themeKey]}
dependentAxis
endAngle={90}
/>
<VictoryPolarAxis
{...props}
theme={VictoryTheme[props.themeKey]}
startAngle={45}
endAngle={360 + 45}
/>
<VictoryPolarAxis {...props} theme={VictoryTheme[props.themeKey]}

<VictoryPolarAxis
{...props}
theme={VictoryTheme[props.themeKey]}
dependentAxis
startAngle={45}
endAngle={360 + 45}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import type { Meta } from "@storybook/react";

import { VictoryScatter, VictoryChart, VictoryTheme } from "@/victory";
import { Story, ComponentMeta } from "./config";
import { getData } from "../../utils/data";

const meta: Meta<typeof VictoryScatter> = {
...ComponentMeta,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import type { Meta } from "@storybook/react";

import { Point, VictoryScatter, VictoryChart, VictoryTheme } from "@/victory";
import { Story, ComponentMeta } from "./config";
import { getData } from "../../utils/data";

const meta: Meta<typeof VictoryScatter> = {
...ComponentMeta,
Expand Down
2 changes: 1 addition & 1 deletion stories/victory-charts/victory-scatter/domain.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from "react";
import type { Meta } from "@storybook/react";

import { VictoryScatter, VictoryChart, VictoryTheme } from "@/victory";
import { VictoryScatter, VictoryChart } from "@/victory";
import { Story, ComponentMeta } from "./config";
import { getData } from "../../utils/data";

Expand Down
2 changes: 1 addition & 1 deletion stories/victory-charts/victory-scatter/labels.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from "react";
import type { Meta } from "@storybook/react";

import { VictoryScatter, VictoryChart, VictoryTheme } from "@/victory";
import { VictoryScatter, VictoryChart } from "@/victory";
import { Story, ComponentMeta } from "./config";
import { getData } from "../../utils/data";

Expand Down

0 comments on commit 1a1e960

Please sign in to comment.