Skip to content

Commit 1d680cb

Browse files
committed
Fix lint errors
1 parent 54f41d8 commit 1d680cb

File tree

8 files changed

+34
-16
lines changed

8 files changed

+34
-16
lines changed

stories/victory-charts/victory-animation/default.stories.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable react-hooks/rules-of-hooks */
12
import React, { useEffect, useState } from "react";
23
import type { Meta } from "@storybook/react";
34

stories/victory-charts/victory-bar/focus-with-refs.stories.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable react-hooks/rules-of-hooks */
12
import React, { useEffect, useCallback, useRef } from "react";
23
import type { Meta } from "@storybook/react";
34

stories/victory-charts/victory-polar-axis/label-placement.stories.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
import React from "react";
22
import type { Meta } from "@storybook/react";
33

4-
import { VictoryPolarAxis, VictoryChart, VictoryTheme } from "@/victory";
4+
import { VictoryPolarAxis, VictoryTheme } from "@/victory";
55
import { Story, ComponentMeta } from "./config";
6-
import { getData } from "../../utils/data";
76

87
const meta: Meta<typeof VictoryPolarAxis> = {
98
...ComponentMeta,

stories/victory-charts/victory-polar-axis/start-and-end-angle.stories.tsx

Lines changed: 29 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
import React from "react";
22
import type { Meta } from "@storybook/react";
33

4-
import { VictoryPolarAxis, VictoryChart, VictoryTheme } from "@/victory";
4+
import { VictoryPolarAxis, VictoryTheme } from "@/victory";
55
import { Story, ComponentMeta } from "./config";
6-
import { getData } from "../../utils/data";
76

87
const meta: Meta<typeof VictoryPolarAxis> = {
98
...ComponentMeta,
@@ -14,17 +13,37 @@ export const StartAndEndAngle: Story = {
1413
args: {},
1514
render: (props) => (
1615
<>
17-
<VictoryPolarAxis {...props} theme={VictoryTheme[props.themeKey]} startAngle={45} />
18-
<VictoryPolarAxis {...props} theme={VictoryTheme[props.themeKey]} dependentAxis startAngle={45} />
19-
<VictoryPolarAxis {...props} theme={VictoryTheme[props.themeKey]} endAngle={90} />
20-
<VictoryPolarAxis {...props} theme={VictoryTheme[props.themeKey]} dependentAxis endAngle={90} />
21-
<VictoryPolarAxis {...props} theme={VictoryTheme[props.themeKey]}
22-
16+
<VictoryPolarAxis
17+
{...props}
18+
theme={VictoryTheme[props.themeKey]}
19+
startAngle={45}
20+
/>
21+
<VictoryPolarAxis
22+
{...props}
23+
theme={VictoryTheme[props.themeKey]}
24+
dependentAxis
25+
startAngle={45}
26+
/>
27+
<VictoryPolarAxis
28+
{...props}
29+
theme={VictoryTheme[props.themeKey]}
30+
endAngle={90}
31+
/>
32+
<VictoryPolarAxis
33+
{...props}
34+
theme={VictoryTheme[props.themeKey]}
35+
dependentAxis
36+
endAngle={90}
37+
/>
38+
<VictoryPolarAxis
39+
{...props}
40+
theme={VictoryTheme[props.themeKey]}
2341
startAngle={45}
2442
endAngle={360 + 45}
2543
/>
26-
<VictoryPolarAxis {...props} theme={VictoryTheme[props.themeKey]}
27-
44+
<VictoryPolarAxis
45+
{...props}
46+
theme={VictoryTheme[props.themeKey]}
2847
dependentAxis
2948
startAngle={45}
3049
endAngle={360 + 45}

stories/victory-charts/victory-scatter/default-rendering.stories.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import type { Meta } from "@storybook/react";
33

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

87
const meta: Meta<typeof VictoryScatter> = {
98
...ComponentMeta,

stories/victory-charts/victory-scatter/disable-inline-styles.stories.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import type { Meta } from "@storybook/react";
33

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

87
const meta: Meta<typeof VictoryScatter> = {
98
...ComponentMeta,

stories/victory-charts/victory-scatter/domain.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from "react";
22
import type { Meta } from "@storybook/react";
33

4-
import { VictoryScatter, VictoryChart, VictoryTheme } from "@/victory";
4+
import { VictoryScatter, VictoryChart } from "@/victory";
55
import { Story, ComponentMeta } from "./config";
66
import { getData } from "../../utils/data";
77

stories/victory-charts/victory-scatter/labels.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from "react";
22
import type { Meta } from "@storybook/react";
33

4-
import { VictoryScatter, VictoryChart, VictoryTheme } from "@/victory";
4+
import { VictoryScatter, VictoryChart } from "@/victory";
55
import { Story, ComponentMeta } from "./config";
66
import { getData } from "../../utils/data";
77

0 commit comments

Comments
 (0)