Skip to content

Commit

Permalink
fix: include import React
Browse files Browse the repository at this point in the history
  • Loading branch information
YossiSaadi committed May 21, 2024
1 parent e6397db commit 0a157b3
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { FC } from "react";
import React from "react";
import styles from "./AttentionBoxLink.module.scss";
import Link, { LinkProps } from "../../Link/Link";
import cx from "classnames";

const AttentionBoxLink: FC<LinkProps> = ({
const AttentionBoxLink: React.FC<LinkProps> = ({
href,
text,
// TODO: use Link's target default in next major
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import React from "react";
import cx from "classnames";
import styles from "./StickyCategoryHeader.module.scss";
import comboboxStyles from "../../Combobox.module.scss";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import React from "react";
import Button from "../../Button/Button";
import styles from "./YearPicker.module.scss";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useCallback } from "react";
import Avatar from "../../../Avatar/Avatar";
import Icon from "../../../Icon/Icon";
import { useCallback } from "react";
import styles from "./ChildrenContent.module.scss";
import { getTestId } from "../../../../tests/test-ids-utils";
import { ComponentDefaultTestId } from "../../../../tests/constants";
Expand Down
2 changes: 2 additions & 0 deletions packages/core/src/components/Label/Leg.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import React from "react";

const Leg = () => (
<svg width="8" height="5" viewBox="0 0 8 5" fill="none" xmlns="http://www.w3.org/2000/svg">
<path
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import React from "react";
import { ComponentDefaultTestId, getTestId } from "../../../tests/test-ids-utils";
import cx from "classnames";
import Divider from "../../Divider/Divider";
Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/components/Tipseen/TipseenBasicContent.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { FC } from "react";
import React from "react";
import cx from "classnames";
import TipseenTitle from "./TipseenTitle";
import { VibeComponentProps } from "../../types";
Expand All @@ -13,7 +13,7 @@ export interface TipseenBasicContentProps extends VibeComponentProps {
children?: ElementContent | ElementContent[];
}

const TipseenBasicContent: FC<TipseenBasicContentProps> = ({
const TipseenBasicContent: React.FC<TipseenBasicContentProps> = ({
title,
children = null,
titleClassName,
Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/components/Tipseen/TipseenImage.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import cx from "classnames";
import { FC } from "react";
import React from "react";
import styles from "./TipseenImage.module.scss";
import TipseenMedia from "./TipseenMedia/TipseenMedia";

Expand All @@ -12,7 +12,7 @@ export interface TipseenImageProps {
tipseenMediaClassName?: string;
}

const TipseenImage: FC<TipseenImageProps> = ({ src, alt, className, tipseenMediaClassName }) => {
const TipseenImage: React.FC<TipseenImageProps> = ({ src, alt, className, tipseenMediaClassName }) => {
return (
// TODO future breaking change where we remove the TipseenMedia component and we remove TipseenImage?
<TipseenMedia className={tipseenMediaClassName}>
Expand Down

0 comments on commit 0a157b3

Please sign in to comment.