Skip to content

Commit 0fe120a

Browse files
chore(unity-react-core): update img imports in stories to use imageAny func
1 parent 71f6412 commit 0fe120a

File tree

6 files changed

+16
-15
lines changed

6 files changed

+16
-15
lines changed

packages/app-degree-pages/src/components/ListingPage/index.jsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,6 @@ const ListingPage = ({
248248

249249
return (
250250
<>
251-
252251
{/* @ts-ignore */}
253252
<ThemeStyle />
254253
{/* @ts-ignore */}

packages/unity-react-core/src/components/Article/Article.stories.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
/* eslint react/jsx-props-no-spreading: "off" */
2-
import img from "@asu/shared";
1+
import { imageAny } from "@asu/shared";
32
import React from "react";
3+
const img = imageAny();
44

55
// @ts-ignore
66
import { Article } from "./Article";

packages/unity-react-core/src/components/Card/Card.stories.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
/* eslint react/jsx-props-no-spreading: "off" */
2-
import img1 from "@asu/shared";
1+
import { imageAny } from "@asu/shared";
32
import classNames from "classnames";
43
import React from "react";
4+
const img1 = imageAny(); // Placeholder for an example image
55

66
// @ts-ignore
77
import { Card } from "./Card";

packages/unity-react-core/src/components/Image/Image.stories.jsx

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
// @ts-check
22

3-
// @ts-ignore
4-
import img1 from "@asu/shared";
5-
// @ts-ignore
6-
import img2 from "@asu/shared";
7-
// @ts-ignore
8-
import img3 from "@asu/shared";
9-
// @ts-ignore
10-
import img4 from "@asu/shared";
3+
import { imageAny } from "@asu/shared";
114
import React from "react";
125

6+
const img1 = imageAny(); // Placeholder for an example image
7+
const img2 = imageAny(); // Placeholder for an example image
8+
const img3 = imageAny(); // Placeholder for an example image
9+
const img4 = imageAny(); // Placeholder for an example image
10+
1311
import { Image } from "./Image";
1412

1513
export default {

packages/unity-react-core/src/components/RankingCard/RankingCard.stories.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
import img from "@asu/shared";
1+
import { imageAny } from "@asu/shared";
22
import classNames from "classnames";
33
import React from "react";
44

5+
const img = imageAny();
6+
57
// @ts-ignore
68
import { RankingCard } from "./RankingCard";
79

packages/unity-react-core/src/components/Testimonial/Testimonial.stories.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
// @ts-check
2-
import img from "@asu/shared";
2+
import { imageAny } from "@asu/shared";
33
import React from "react";
44

5+
const img = imageAny();
6+
57
// @ts-ignore
68
import { Testimonial } from "./Testimonial";
79

0 commit comments

Comments
 (0)