Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: add React import to every jsx #165

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
// "import/prefer-default-export": "off",
// "react/prop-types": "off",
"@typescript-eslint/no-explicit-any": "off",
"react/react-in-jsx-scope": "off",
"react/display-name": "off"
},
"settings": {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Accordion/Accordion.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { forwardRef, useState } from "react";
import React, { forwardRef, useState } from "react";
// Components
import Flex, { FlexProps } from "@components/Flex";
// Context
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { forwardRef } from "react";
import React, { forwardRef } from "react";
// Components
import Flex, { FlexProps } from "@components/Flex";
import Transition, { TransitionProps } from "@components/Transition";
Expand Down
2 changes: 1 addition & 1 deletion src/components/Accordion/AccordionIcon/AccordionIcon.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ReactNode, forwardRef } from "react";
import React, { ReactNode, forwardRef } from "react";
import { CaretUp } from "@phosphor-icons/react";
// Components
import Flex, { FlexProps } from "@components/Flex";
Expand Down
2 changes: 1 addition & 1 deletion src/components/Accordion/AccordionItem/AccordionItem.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { forwardRef } from "react";
import React, { forwardRef } from "react";
// Components
import Flex, { FlexProps } from "@components/Flex";
// Context
Expand Down
2 changes: 1 addition & 1 deletion src/components/Accordion/AccordionPanel/AccordionPanel.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { forwardRef, useRef, useEffect, useState } from "react";
import React, { forwardRef, useRef, useEffect, useState } from "react";
// Components
import Box from "@components/Box";
import Animation, { AnimationProps } from "@components/Animation";
Expand Down
2 changes: 1 addition & 1 deletion src/components/ActionButton/ActionButton.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { forwardRef } from "react";
import React, { forwardRef } from "react";
// Components
import Button, { ButtonProps } from "@components/Button";
// Utils
Expand Down
2 changes: 1 addition & 1 deletion src/components/Alert/Alert.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { forwardRef, ReactNode, useState } from "react";
import React, { forwardRef, ReactNode, useState } from "react";
import {
Warning,
WarningOctagon,
Expand Down
2 changes: 1 addition & 1 deletion src/components/Alert/AlertDescription/AlertDescription.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { forwardRef } from "react";
import React, { forwardRef } from "react";
// Components
import Text, { TextProps } from "@components/Text";
// Utils
Expand Down
2 changes: 1 addition & 1 deletion src/components/Alert/AlertTitle/AlertTitle.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { forwardRef } from "react";
import React, { forwardRef } from "react";
// Components
import Text, { TextProps } from "@components/Text";
// Utils
Expand Down
2 changes: 1 addition & 1 deletion src/components/Animation/Animation.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { forwardRef, useEffect, useState } from "react";
import React, { forwardRef, useEffect, useState } from "react";
// Components
import Transition, { TransitionProps } from "@components/Transition";
// Types
Expand Down
2 changes: 1 addition & 1 deletion src/components/AspectRatio/AspectRatio.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { forwardRef } from "react";
import React, { forwardRef } from "react";
// Components
import Box, { BoxProps } from "@components/Box";
// Types
Expand Down
2 changes: 1 addition & 1 deletion src/components/AutocompleteField/AutocompleteField.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { forwardRef, useState, useEffect } from "react";
import React, { forwardRef, useState, useEffect } from "react";
// Components
import SelectField, { SelectFieldProps } from "@components/SelectField";
// Hooks
Expand Down
2 changes: 1 addition & 1 deletion src/components/Avatar/Avatar.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { forwardRef } from "react";
import React, { forwardRef } from "react";
import { UserCircle } from "@phosphor-icons/react";
// Components
import Center from "@components/Center";
Expand Down
2 changes: 1 addition & 1 deletion src/components/Backdrop/Backdrop.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { forwardRef } from "react";
import React, { forwardRef } from "react";
// Components
import Center, { CenterProps } from "@components/Center";
// Utils
Expand Down
2 changes: 1 addition & 1 deletion src/components/Badge/Badge.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { forwardRef, ReactNode } from "react";
import React, { forwardRef, ReactNode } from "react";
// Components
import Box from "@components/Box";
import Center, { CenterProps } from "@components/Center";
Expand Down
2 changes: 1 addition & 1 deletion src/components/Box/Box.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { forwardRef } from "react";
import React, { forwardRef } from "react";
// Hooks
import useStyling from "./useStyling";
import usePrismaneColor from "@components/PrismaneProvider/usePrismaneColor";
Expand Down
2 changes: 1 addition & 1 deletion src/components/Breadcrumb/Breadcrumb.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { forwardRef } from "react";
import React, { forwardRef } from "react";
// Components
import Flex, { FlexProps } from "@components/Flex";
// Types
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { forwardRef } from "react";
import React, { forwardRef } from "react";
// Components
import Flex, { FlexProps } from "@components/Flex";
import Link from "@components/Link";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { forwardRef } from "react";
import React, { forwardRef } from "react";
// Components
import Flex, { FlexProps } from "@components/Flex";
// Utils
Expand Down
2 changes: 1 addition & 1 deletion src/components/Button/Button.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { forwardRef, ReactNode } from "react";
import React, { forwardRef, ReactNode } from "react";
// Components
import Transition, { TransitionProps } from "@components/Transition";
import Text from "@components/Text";
Expand Down
2 changes: 1 addition & 1 deletion src/components/Card/Card.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { forwardRef } from "react";
import React, { forwardRef } from "react";
// Component
import Paper, { PaperProps } from "@components/Paper";
// Types
Expand Down
2 changes: 1 addition & 1 deletion src/components/Card/CardFooter/CardFooter.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { forwardRef } from "react";
import React, { forwardRef } from "react";
// Components
import Flex, { FlexProps } from "@components/Flex";
// Utils
Expand Down
2 changes: 1 addition & 1 deletion src/components/Card/CardHeader/CardHeader.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { forwardRef } from "react";
import React, { forwardRef } from "react";
// Components
import Flex, { FlexProps } from "@components/Flex";
// Utils
Expand Down
2 changes: 1 addition & 1 deletion src/components/Center/Center.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { forwardRef } from "react";
import React, { forwardRef } from "react";
// Components
import Flex, { FlexProps } from "@components/Flex";
// Types
Expand Down
2 changes: 1 addition & 1 deletion src/components/Checkbox/Checkbox.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { forwardRef, ReactNode } from "react";
import React, { forwardRef, ReactNode } from "react";
import { Check, Minus } from "@phosphor-icons/react";
// Components
import Flex, { FlexProps } from "@components/Flex";
Expand Down
2 changes: 1 addition & 1 deletion src/components/Chip/Chip.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { forwardRef, ReactNode } from "react";
import React, { forwardRef, ReactNode } from "react";
// Components
import Flex, { FlexProps } from "@components/Flex";
import Transition, { TransitionProps } from "@components/Transition";
Expand Down
2 changes: 1 addition & 1 deletion src/components/Circle/Circle.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { forwardRef } from "react";
import React, { forwardRef } from "react";
// Components
import Center, { CenterProps } from "@components/Center";
// Types
Expand Down
2 changes: 1 addition & 1 deletion src/components/CloseButton/CloseButton.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { forwardRef } from "react";
import React, { forwardRef } from "react";
import { X } from "@phosphor-icons/react";
// Components
import ActionButton, { ActionButtonProps } from "@components/ActionButton";
Expand Down
2 changes: 1 addition & 1 deletion src/components/Collapse/Collapse.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { forwardRef, useRef } from "react";
import React, { forwardRef, useRef } from "react";
// Components
import Animation, { AnimationProps } from "@components/Animation";
import Box from "@components/Box";
Expand Down
2 changes: 1 addition & 1 deletion src/components/ColorField/ColorField.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { forwardRef } from "react";
import React, { forwardRef } from "react";
// Components
import SelectField, { SelectFieldProps } from "@components/SelectField";
import Field from "@components/Field";
Expand Down
2 changes: 1 addition & 1 deletion src/components/Container/Container.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { forwardRef } from "react";
import React, { forwardRef } from "react";
// Components
import Flex, { FlexProps } from "@components/Flex";
// Types
Expand Down
2 changes: 1 addition & 1 deletion src/components/Dialog/Dialog.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { forwardRef, useEffect } from "react";
import React, { forwardRef, useEffect } from "react";
// Components
import Animation, { AnimationProps } from "@components/Animation";
import Paper from "@components/Paper";
Expand Down
2 changes: 1 addition & 1 deletion src/components/Dialog/DialogFooter/DialogFooter.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { forwardRef } from "react";
import React, { forwardRef } from "react";
// Components
import Flex, { FlexProps } from "@components/Flex";
// Utils
Expand Down
2 changes: 1 addition & 1 deletion src/components/Dialog/DialogHeader/DialogHeader.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { forwardRef } from "react";
import React, { forwardRef } from "react";
// Components
import Flex, { FlexProps } from "@components/Flex";
import CloseButton from "@components/CloseButton";
Expand Down
2 changes: 1 addition & 1 deletion src/components/Divider/Divider.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { forwardRef } from "react";
import React, { forwardRef } from "react";
// Components
import Flex, { FlexProps } from "@components/Flex";
// Types
Expand Down
2 changes: 1 addition & 1 deletion src/components/Drawer/Drawer.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { forwardRef, useEffect } from "react";
import React, { forwardRef, useEffect } from "react";
// Components
import Paper, { PaperProps } from "@components/Paper";
import Animation, { AnimationProps } from "@components/Animation";
Expand Down
2 changes: 1 addition & 1 deletion src/components/Drawer/DrawerFooter/DrawerFooter.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { forwardRef } from "react";
import React, { forwardRef } from "react";
// Components
import Flex, { FlexProps } from "@components/Flex";
// Utils
Expand Down
2 changes: 1 addition & 1 deletion src/components/Drawer/DrawerHeader/DrawerHeader.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { forwardRef } from "react";
import React, { forwardRef } from "react";
// Components
import Flex, { FlexProps } from "@components/Flex";
import CloseButton from "@components/CloseButton";
Expand Down
2 changes: 1 addition & 1 deletion src/components/Field/Field.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { forwardRef } from "react";
import React, { forwardRef } from "react";
// Components
import Box from "@components/Box";
import Flex, { FlexProps } from "@components/Flex";
Expand Down
2 changes: 1 addition & 1 deletion src/components/Field/FieldAddon/FieldAddon.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { forwardRef } from "react";
import React, { forwardRef } from "react";
// Components
import Transition, { TransitionProps } from "@components/Transition";
import Flex, { FlexProps } from "@components/Flex";
Expand Down
2 changes: 1 addition & 1 deletion src/components/Field/FieldError/FieldError.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { forwardRef } from "react";
import React, { forwardRef } from "react";
// Components
import Flex, { FlexProps } from "@components/Flex";
import Animation, { AnimationProps } from "@components/Animation";
Expand Down
2 changes: 1 addition & 1 deletion src/components/Field/FieldLabel/FieldLabel.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { forwardRef } from "react";
import React, { forwardRef } from "react";
// Components
import Text, { TextProps } from "@components/Text";
// Types
Expand Down
2 changes: 1 addition & 1 deletion src/components/Field/FieldWrapper/FieldWrapper.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { forwardRef } from "react";
import React, { forwardRef } from "react";
// Components
import Flex, { FlexProps } from "@components/Flex";
// Utils
Expand Down
2 changes: 1 addition & 1 deletion src/components/Flex/Flex.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { forwardRef } from "react";
import React, { forwardRef } from "react";
// Components
import Box, { BoxProps } from "@components/Box";
// Types
Expand Down
2 changes: 1 addition & 1 deletion src/components/Footer/Footer.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { forwardRef } from "react";
import React, { forwardRef } from "react";
// Components
import Flex, { FlexProps } from "@components/Flex";
// Utils
Expand Down
2 changes: 1 addition & 1 deletion src/components/Form/Form.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { forwardRef } from "react";
import React, { forwardRef } from "react";
// Components
import Box, { BoxProps } from "@components/Box";
// Utils
Expand Down
2 changes: 1 addition & 1 deletion src/components/Gradient/Gradient.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { forwardRef } from "react";
import React, { forwardRef } from "react";
import * as CSS from "csstype";
// Component
import Box, { BoxProps } from "@components/Box";
Expand Down
2 changes: 1 addition & 1 deletion src/components/Grid/Grid.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { forwardRef } from "react";
import React, { forwardRef } from "react";
// Components
import Box, { BoxProps } from "@components/Box";
// Types
Expand Down
2 changes: 1 addition & 1 deletion src/components/Grid/GridItem/GridItem.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { forwardRef } from "react";
import React, { forwardRef } from "react";
// Components
import Flex, { FlexProps } from "@components/Flex";
// Types
Expand Down
2 changes: 1 addition & 1 deletion src/components/Header/Header.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { forwardRef } from "react";
import React, { forwardRef } from "react";
// Components
import Flex, { FlexProps } from "@components/Flex";
// Utils
Expand Down
2 changes: 1 addition & 1 deletion src/components/Hidden/Hidden.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { forwardRef } from "react";
import React, { forwardRef } from "react";
// Components
import Box, { BoxProps } from "@components/Box";
// Utils
Expand Down
2 changes: 1 addition & 1 deletion src/components/Hide/Hide.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { forwardRef } from "react";
import React, { forwardRef } from "react";
// Components
import Box, { BoxProps } from "@components/Box";
// Hooks
Expand Down
2 changes: 1 addition & 1 deletion src/components/Highlight/Highlight.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { forwardRef } from "react";
import React, { forwardRef } from "react";
// Components
import Box, { BoxProps } from "@components/Box";
// Types
Expand Down
2 changes: 1 addition & 1 deletion src/components/Icon/Icon.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { forwardRef } from "react";
import React, { forwardRef } from "react";
// Components
import Square, { SquareProps } from "@components/Square";
// Types
Expand Down
2 changes: 1 addition & 1 deletion src/components/Image/Image.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { forwardRef } from "react";
import React, { forwardRef } from "react";
// Components
import Box, { BoxProps } from "@components/Box";
// Types
Expand Down
2 changes: 1 addition & 1 deletion src/components/Initials/Initials.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { FC } from "react";
import React, { FC } from "react";

export type InitialsProps = {
name: string;
Expand Down
2 changes: 1 addition & 1 deletion src/components/Key/Key.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { forwardRef } from "react";
import React, { forwardRef } from "react";
// Components
import Box, { BoxProps } from "@components/Box";
// Utils
Expand Down
2 changes: 1 addition & 1 deletion src/components/Link/Link.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { forwardRef } from "react";
import React, { forwardRef } from "react";
// Components
import Text, { TextProps } from "@components/Text";
// Types
Expand Down
2 changes: 1 addition & 1 deletion src/components/List/List.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { forwardRef } from "react";
import React, { forwardRef } from "react";
// Components
import Flex, { FlexProps } from "@components/Flex";
// Types
Expand Down
2 changes: 1 addition & 1 deletion src/components/List/ListIcon/ListIcon.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { forwardRef } from "react";
import React, { forwardRef } from "react";
// Components
import Icon, { IconProps } from "@components/Icon";
// Utils
Expand Down
2 changes: 1 addition & 1 deletion src/components/List/ListItem/ListItem.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { forwardRef } from "react";
import React, { forwardRef } from "react";
// Components
import Flex, { FlexProps } from "@components/Flex";
import Box from "@components/Box";
Expand Down
2 changes: 1 addition & 1 deletion src/components/List/ListOrdered/ListOrdered.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { forwardRef } from "react";
import React, { forwardRef } from "react";
// Components
import List, { ListProps } from "@components/List";
// Utils
Expand Down
2 changes: 1 addition & 1 deletion src/components/List/ListUnordered/ListUnordered.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { forwardRef } from "react";
import React, { forwardRef } from "react";
// Components
import List, { ListProps } from "@components/List";
// Utils
Expand Down
2 changes: 1 addition & 1 deletion src/components/Main/Main.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { forwardRef } from "react";
import React, { forwardRef } from "react";
// Components
import Flex, { FlexProps } from "@components/Flex";
// Utils
Expand Down
2 changes: 1 addition & 1 deletion src/components/Menu/Menu.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { forwardRef } from "react";
import React, { forwardRef } from "react";
// Components
import Paper, { PaperProps } from "@components/Paper";
import Animation, { AnimationProps } from "@components/Animation";
Expand Down
Loading
Loading