Skip to content

Commit

Permalink
fix: missing React imports in multiple JSX/TSX files (#3287)
Browse files Browse the repository at this point in the history
  • Loading branch information
raj17ce authored Oct 11, 2024
1 parent 2e31739 commit 0d4eabc
Show file tree
Hide file tree
Showing 195 changed files with 325 additions and 34 deletions.
1 change: 1 addition & 0 deletions components/Calendar.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import moment from 'moment';
import React from 'react';
import { twMerge } from 'tailwind-merge';

import type { IEvent } from '@/types/event';
Expand Down
2 changes: 2 additions & 0 deletions components/CaseStudyCard.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import React from 'react';

import type { ICaseStudies } from '@/types/post';
import { ParagraphTypeStyle } from '@/types/typography/Paragraph';

Expand Down
2 changes: 1 addition & 1 deletion components/CaseTOC.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useMemo, useState } from 'react';
import React, { useMemo, useState } from 'react';
import { twMerge } from 'tailwind-merge';

import { useHeadingsObserver } from './helpers/useHeadingsObserver';
Expand Down
1 change: 1 addition & 0 deletions components/ClickableLogo.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import Link from 'next/link';
import React from 'react';

import AsyncAPILogo from './logos/AsyncAPILogo';

Expand Down
2 changes: 1 addition & 1 deletion components/DemoAnimation.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useEffect, useState } from 'react';
import React, { useEffect, useState } from 'react';
import Typing from 'react-typist-component';

import { HeadingLevel, HeadingTypeStyle } from '@/types/typography/Heading';
Expand Down
2 changes: 1 addition & 1 deletion components/Feedback.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useRouter } from 'next/router';
import { useEffect, useState } from 'react';
import React, { useEffect, useState } from 'react';

import GitHubIssue from './buttons/GitHubIssue';

Expand Down
2 changes: 2 additions & 0 deletions components/Figure.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import React from 'react';

import { Float } from '@/types/components/FigurePropsType';

import Caption from './Caption';
Expand Down
2 changes: 2 additions & 0 deletions components/FinancialSummary/AsyncAPISummary.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import React from 'react';

import { HeadingLevel, HeadingTypeStyle } from '@/types/typography/Heading';
import { ParagraphTypeStyle } from '@/types/typography/Paragraph';

Expand Down
2 changes: 2 additions & 0 deletions components/FinancialSummary/Card.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import React from 'react';

import type { ExpenseItem, Expenses } from '@/types/FinancialSummary/BarChartComponent';

import ExpensesLinkData from '../../config/finance/json-data/ExpensesLink.json';
Expand Down
2 changes: 2 additions & 0 deletions components/FinancialSummary/ContactUs.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import React from 'react';

import { HeadingLevel, HeadingTypeStyle } from '@/types/typography/Heading';
import { ParagraphTypeStyle } from '@/types/typography/Paragraph';

Expand Down
2 changes: 2 additions & 0 deletions components/FinancialSummary/CustomTooltip.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import React from 'react';

import type { CustomTooltipProps } from '@/types/FinancialSummary/BarChartComponent';

/**
Expand Down
2 changes: 2 additions & 0 deletions components/FinancialSummary/ExpenseBreakdown.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import React from 'react';

import { ParagraphTypeStyle } from '@/types/typography/Paragraph';

import { expenseData } from '../data/ExpenseBreakdownData';
Expand Down
2 changes: 2 additions & 0 deletions components/FinancialSummary/ExpensesCard.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import React from 'react';

import type { Expenses } from '@/types/FinancialSummary/BarChartComponent';

import ExpensesData from '../../config/finance/json-data/Expenses.json';
Expand Down
2 changes: 2 additions & 0 deletions components/FinancialSummary/OtherFormsComponent.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import React from 'react';

import { ParagraphTypeStyle } from '@/types/typography/Paragraph';

import { otherFormsData } from '../data/otherFormsData';
Expand Down
2 changes: 2 additions & 0 deletions components/FinancialSummary/SponsorshipTiers.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import React from 'react';

import { HeadingLevel, HeadingTypeStyle } from '@/types/typography/Heading';
import { ParagraphTypeStyle } from '@/types/typography/Paragraph';

Expand Down
2 changes: 2 additions & 0 deletions components/FinancialSummary/SuccessStories.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import React from 'react';

import { successStories } from '../data/successStoriesData';

/**
Expand Down
2 changes: 1 addition & 1 deletion components/GeneratorInstallation.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useState } from 'react';
import React, { useState } from 'react';

import { ParagraphTypeStyle } from '@/types/typography/Paragraph';

Expand Down
2 changes: 2 additions & 0 deletions components/Hero.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import React from 'react';

import { HeadingLevel, HeadingTypeStyle } from '@/types/typography/Heading';
import { ParagraphTypeStyle } from '@/types/typography/Paragraph';

Expand Down
2 changes: 1 addition & 1 deletion components/InlineHelp.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useEffect, useState } from 'react';
import React, { useEffect, useState } from 'react';

import { registerClickAway } from './helpers/click-away';
import QuestionMark from './icons/QuestionMark';
Expand Down
1 change: 1 addition & 0 deletions components/InputBox.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { useArgs } from '@storybook/preview-api';
import type { Meta, StoryObj } from '@storybook/react';
import React from 'react';

import type { InputBoxProps } from '@/types/components/InputBoxPropsType';
import { InputTypes } from '@/types/components/InputBoxPropsType';
Expand Down
1 change: 1 addition & 0 deletions components/Loader.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import type { Meta, StoryObj } from '@storybook/react';
import React from 'react';

import AsyncAPIColorIcon from '@/components/icons/AsyncAPIColorIcon';
import IconCircularLoader from '@/components/icons/CircularLoader';
Expand Down
2 changes: 1 addition & 1 deletion components/MDX/MDX.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { MDXProvider as CoreMDXProvider } from '@mdx-js/react';
import mermaid from 'mermaid';
import Link from 'next/link';
import { useLayoutEffect, useState } from 'react';
import React, { useLayoutEffect, useState } from 'react';
import {
TwitterDMButton,
TwitterFollowButton,
Expand Down
2 changes: 2 additions & 0 deletions components/MacWindow.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import React from 'react';

interface IMacWindowProps {
className?: string;
contentClassName?: string;
Expand Down
1 change: 1 addition & 0 deletions components/Meeting.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { ArrowRightIcon } from '@heroicons/react/outline';
import React from 'react';

import { ParagraphTypeStyle } from '@/types/typography/Paragraph';

Expand Down
2 changes: 1 addition & 1 deletion components/Modal.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useEffect, useRef } from 'react';
import React, { useEffect, useRef } from 'react';

interface IModalProps {
title: string;
Expand Down
2 changes: 1 addition & 1 deletion components/NewsletterSubscribe.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useTranslation } from 'next-i18next';
import { useState } from 'react';
import React, { useState } from 'react';

import IconCircularLoader from '@/components/icons/CircularLoader';
import { ButtonType } from '@/types/components/buttons/ButtonPropsType';
Expand Down
2 changes: 2 additions & 0 deletions components/Profiles.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import React from 'react';

type Profile = {
name: string;
link: string;
Expand Down
2 changes: 2 additions & 0 deletions components/Remember.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import React from 'react';

import LightBulb from './icons/LightBulb';

interface RememberProps {
Expand Down
2 changes: 2 additions & 0 deletions components/SupportUs/SupportUs.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import React from 'react';

import { items } from './SupportItemsList';

interface SupportUsProps {
Expand Down
2 changes: 1 addition & 1 deletion components/TOC.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useState } from 'react';
import React, { useState } from 'react';
import Scrollspy from 'react-scrollspy';
import { twMerge } from 'tailwind-merge';

Expand Down
2 changes: 2 additions & 0 deletions components/Testimonial.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import React from 'react';

import IconQuote from './icons/Quote';
import Paragraph from './typography/Paragraph';

Expand Down
2 changes: 2 additions & 0 deletions components/Warning.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import React from 'react';

import IconExclamation from './icons/Exclamation';

interface WarningProps {
Expand Down
1 change: 1 addition & 0 deletions components/buttons/Button.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import type { Meta, StoryObj } from '@storybook/react';
import React from 'react';

import { ButtonIconPosition, ButtonSize, ButtonType } from '@/types/components/buttons/ButtonPropsType';

Expand Down
1 change: 1 addition & 0 deletions components/buttons/Button.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import Link from 'next/link';
import React from 'react';
import { twMerge } from 'tailwind-merge';

import { ButtonIconPosition, ButtonSize, ButtonType } from '@/types/components/buttons/ButtonPropsType';
Expand Down
1 change: 1 addition & 0 deletions components/buttons/ChapterSuggestion.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import Link from 'next/link';
import type { HTMLAttributeAnchorTarget } from 'react';
import React from 'react';
import type { Url } from 'url';

import IconArrowRight from '../icons/ArrowRight';
Expand Down
2 changes: 2 additions & 0 deletions components/buttons/ChapterSuggestions.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import React from 'react';

import type { IChapterSuggestionProps } from './ChapterSuggestion';
import ChapterSuggestion from './ChapterSuggestion';

Expand Down
1 change: 1 addition & 0 deletions components/buttons/DocsButton.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import Link from 'next/link';
import React from 'react';

import type { IDocs } from '@/types/post';

Expand Down
2 changes: 2 additions & 0 deletions components/buttons/GithubButton.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import React from 'react';

import { ButtonIconPosition, ButtonSize } from '@/types/components/buttons/ButtonPropsType';

import type { IButtonDefaultProps } from '../../types/components/buttons/types';
Expand Down
2 changes: 2 additions & 0 deletions components/buttons/GoogleCalendarButton.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import React from 'react';

import { ButtonIconPosition } from '@/types/components/buttons/ButtonPropsType';

import type { IButtonDefaultProps } from '../../types/components/buttons/types';
Expand Down
2 changes: 2 additions & 0 deletions components/buttons/ICSFileButton.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import React from 'react';

import { ButtonIconPosition } from '@/types/components/buttons/ButtonPropsType';

import type { IButtonDefaultProps } from '../../types/components/buttons/types';
Expand Down
2 changes: 2 additions & 0 deletions components/buttons/OpenInStudioButton.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import React from 'react';

import IconRocket from '../icons/Rocket';
import Button from './Button';

Expand Down
2 changes: 2 additions & 0 deletions components/buttons/SlackButton.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import React from 'react';

import { ButtonIconPosition } from '@/types/components/buttons/ButtonPropsType';

import type { IButtonDefaultProps } from '../../types/components/buttons/types';
Expand Down
2 changes: 2 additions & 0 deletions components/buttons/SubscribeButton.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import React from 'react';

import { ButtonIconPosition } from '@/types/components/buttons/ButtonPropsType';

import type { IButtonDefaultProps } from '../../types/components/buttons/types';
Expand Down
2 changes: 2 additions & 0 deletions components/buttons/YoutubeButton.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import React from 'react';

import { ButtonIconPosition } from '@/types/components/buttons/ButtonPropsType';

import type { IButtonDefaultProps } from '../../types/components/buttons/types';
Expand Down
2 changes: 1 addition & 1 deletion components/campaigns/AnnouncementHero.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useEffect, useState } from 'react';
import React, { useEffect, useState } from 'react';

import ArrowLeft from '../icons/ArrowLeft';
import ArrowRight from '../icons/ArrowRight';
Expand Down
2 changes: 2 additions & 0 deletions components/community/Hero.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import React from 'react';

import orbitData from '../../config/orbitData.json';
import Header from './Header';

Expand Down
2 changes: 2 additions & 0 deletions components/dashboard/Button.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import React from 'react';

interface ButtonProps {
text: string;
onClick: (event: React.MouseEvent<HTMLButtonElement>) => void;
Expand Down
2 changes: 1 addition & 1 deletion components/dashboard/GoodFirstIssues.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useState } from 'react';
import React, { useState } from 'react';

import type { Issue } from '@/types/components/dashboard/TableTypes';

Expand Down
2 changes: 1 addition & 1 deletion components/dashboard/GoodFirstIssuesTip.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useFloating } from '@floating-ui/react-dom-interactions';
import { useState } from 'react';
import React, { useState } from 'react';

/**
* @description A tooltip that appears when the user hovers over the Good First Issues icon.
Expand Down
2 changes: 2 additions & 0 deletions components/dashboard/Header.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import React from 'react';

import Button from '../buttons/Button';
import GithubButton from '../buttons/GithubButton';
import SlackButton from '../buttons/SlackButton';
Expand Down
2 changes: 1 addition & 1 deletion components/dashboard/table/Filters.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useFloating } from '@floating-ui/react-dom-interactions';
import type { RefObject } from 'react';
import { useEffect, useRef, useState } from 'react';
import React, { useEffect, useRef, useState } from 'react';

import type { Issue } from '@/types/components/dashboard/TableTypes';

Expand Down
2 changes: 2 additions & 0 deletions components/dashboard/table/Row.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import React from 'react';

import type { Issue } from '@/types/components/dashboard/TableTypes';

interface RowProps {
Expand Down
2 changes: 2 additions & 0 deletions components/dashboard/table/Table.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import React from 'react';

import type { Issue } from '@/types/components/dashboard/TableTypes';

import Row from './Row';
Expand Down
1 change: 1 addition & 0 deletions components/docs/Card.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import Link from 'next/link';
import React from 'react';

import { HeadingLevel, HeadingTypeStyle } from '@/types/typography/Heading';
import { ParagraphTypeStyle } from '@/types/typography/Paragraph';
Expand Down
2 changes: 1 addition & 1 deletion components/editor/CodeBlock.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useState } from 'react';
import React, { useState } from 'react';
import Highlight from 'react-syntax-highlighter';

import Caption from '../Caption';
Expand Down
2 changes: 2 additions & 0 deletions components/faq/FAQ.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import React from 'react';

import Accordion from '@/components/Accordion/Accordion';

import { faqList } from './FAQList';
Expand Down
2 changes: 2 additions & 0 deletions components/icons/Ambassador.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import React from 'react';

/* eslint-disable max-len */
/**
* @description Icons for asyncapi website
Expand Down
2 changes: 2 additions & 0 deletions components/icons/ArrowDown.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import React from 'react';

/* eslint-disable max-len */
/**
* @description Icons for asyncapi website
Expand Down
2 changes: 2 additions & 0 deletions components/icons/ArrowLeft.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import React from 'react';

/* eslint-disable max-len */
/**
* @description Icons for asyncapi website
Expand Down
2 changes: 2 additions & 0 deletions components/icons/ArrowRight.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import React from 'react';

/* eslint-disable max-len */
/**
* @description Icons for asyncapi website
Expand Down
2 changes: 2 additions & 0 deletions components/icons/ArrowUp.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import React from 'react';

/* eslint-disable max-len */
/**
* @description Icons for asyncapi website
Expand Down
2 changes: 2 additions & 0 deletions components/icons/AsyncAPI.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import React from 'react';

/* eslint-disable max-len */
/**
* @description Icons for asyncapi website
Expand Down
2 changes: 2 additions & 0 deletions components/icons/AsyncAPIColorIcon.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import React from 'react';

interface AsyncAPIColorLogoProps {
// eslint-disable-next-line prettier/prettier

Expand Down
2 changes: 2 additions & 0 deletions components/icons/Calendar.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import React from 'react';

/* eslint-disable max-len */
/**
* @description Icons for asyncapi website
Expand Down
2 changes: 2 additions & 0 deletions components/icons/CenterMenu.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import React from 'react';

/**
* @description Icons for asyncapi website
*/
Expand Down
Loading

0 comments on commit 0d4eabc

Please sign in to comment.