Skip to content

Commit

Permalink
fix: fix missed imports
Browse files Browse the repository at this point in the history
  • Loading branch information
spleafy committed May 20, 2024
1 parent 53ce8d9 commit bf81f71
Show file tree
Hide file tree
Showing 49 changed files with 38 additions and 15 deletions.
2 changes: 1 addition & 1 deletion src/components/Accordion/AccordionContext.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { createContext, useContext, Dispatch } from "react";
import { createContext, useContext, Dispatch } from "react";

export interface AccordionContextValue {
value?: string | null;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { createContext, useContext } from "react";
import { createContext, useContext } from "react";

export type AccordionItemContextProps = string | null;

Expand Down
1 change: 1 addition & 0 deletions src/components/Main/Main.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import React from "react";
// Components
import Main from "./Main";

Expand Down
1 change: 1 addition & 0 deletions src/components/Main/Main.test.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import React from "react";
import { render } from "@testing-library/react";
// Component
import Main from "./Main";
Expand Down
1 change: 1 addition & 0 deletions src/components/NativeDateField/NativeDateField.test.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import React from "react";
import { render, screen, fireEvent } from "@testing-library/react";
// Component
import NativeDateField from "./NativeDateField";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import React from "react";
import { render, screen, fireEvent } from "@testing-library/react";
// Component
import NativeSelectField from "./NativeSelectField";
Expand Down
1 change: 1 addition & 0 deletions src/components/NumberField/NumberField.test.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import React from "react";
import { render, screen, fireEvent } from "@testing-library/react";
// Component
import NumberField from "./NumberField";
Expand Down
1 change: 1 addition & 0 deletions src/components/Paper/Paper.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import React from "react";
// Components
import Paper from "./Paper";

Expand Down
1 change: 1 addition & 0 deletions src/components/PasswordField/PasswordField.test.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import React from "react";
import { render, screen, fireEvent } from "@testing-library/react";
// Component
import PasswordField from "./PasswordField";
Expand Down
1 change: 1 addition & 0 deletions src/components/PinField/PinField.test.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import React from "react";
import { render, screen, fireEvent } from "@testing-library/react";
import PinField from "./PinField"; // Component

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import React from "react";
import { Flex, Text } from "../../..";
import usePrismaneColor from "../usePrismaneColor/usePrismaneColor";
import { fr } from "../../../utils";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import React from "react";
// Components
import Center from "../../Center";
import Button from "../../Button";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import React from "react";
import { renderHook, act } from "@testing-library/react-hooks/dom";
import { usePrismaneTheme } from "../PrismaneContext";
import PrismaneProvider from "../PrismaneProvider";
Expand Down
1 change: 1 addition & 0 deletions src/components/SegmentedField/SegmentedField.test.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import React from "react";
import { render, screen, fireEvent } from "@testing-library/react";
// Component
import SegmentedField from "./SegmentedField";
Expand Down
1 change: 1 addition & 0 deletions src/components/SelectField/SelectField.test.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import React from "react";
import { render, screen, fireEvent } from "@testing-library/react";
// Component
import SelectField from "./SelectField";
Expand Down
1 change: 1 addition & 0 deletions src/components/Skeleton/Skeleton.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import React from "react";
// Components
import Skeleton from "./Skeleton";
import Stack from "../Stack";
Expand Down
1 change: 1 addition & 0 deletions src/components/Spinner/Spinner.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import React from "react";
// Components
import Spinner from "./Spinner";

Expand Down
1 change: 1 addition & 0 deletions src/components/Square/Square.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import React from "react";
import { Wrench } from "@phosphor-icons/react";
// Components
import Square from "./Square";
Expand Down
1 change: 1 addition & 0 deletions src/components/Text/Text.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import React from "react";
// Components
import Text from "./Text";
import Stack from "../Stack/Stack";
Expand Down
1 change: 1 addition & 0 deletions src/hooks/useAnimation/useAnimation.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import React from "react";
import { Flex, Button, Animation } from "../../components";
import useAnimation from "./useAnimation";
import { fr } from "../../utils";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import React from "react";
import { Flex, Button, Text } from "../../components";
import useCopyToClipboard from "./useCopyToClipboard";
import { fr } from "../../utils";
Expand Down
1 change: 0 additions & 1 deletion src/hooks/useCopyToClipboard/useCopyToClipboard.test.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { renderHook } from "@testing-library/react-hooks/dom";
import React from "react";
import { describe, vi } from "vitest";

// Hook
Expand Down
1 change: 1 addition & 0 deletions src/hooks/useCounter/useCounter.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import React from "react";
import { Flex, Button, Text } from "../../components";
import useCounter from "./useCounter";
import { fr } from "../../utils";
Expand Down
1 change: 0 additions & 1 deletion src/hooks/useDebounce/useDebounce.test.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from "react";
import { vi } from "vitest";
import { renderHook, act } from "@testing-library/react-hooks";
// Hook
Expand Down
1 change: 0 additions & 1 deletion src/hooks/useDimensions/useDimensions.test.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from "react";
import { test, vi } from "vitest";
import { renderHook } from "@testing-library/react-hooks";
// Hook
Expand Down
1 change: 1 addition & 0 deletions src/hooks/useDraggable/useDraggable.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import React from "react";
import { Box } from "../../components";
import useDraggable from "./useDraggable";
import { fr } from "../../utils";
Expand Down
1 change: 1 addition & 0 deletions src/hooks/useDraggable/useDraggable.test.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import React from "react";
import { renderHook, act } from "@testing-library/react-hooks";
import { render, fireEvent } from "@testing-library/react";
// Hook
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from "react";
import { test, vi } from "vitest";
// Hook
import useEmulatedFieldChange from "./useEmulatedFieldChange";
Expand Down
1 change: 1 addition & 0 deletions src/hooks/useFocusTrap/useFocusTrap.test.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import React from "react";
import { render } from "@testing-library/react";
import { renderHook } from "@testing-library/react-hooks";
import useFocusTrap from "./useFocusTrap";
Expand Down
1 change: 1 addition & 0 deletions src/hooks/useForm/useForm.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import React from "react";
// Components
import Form from "../../components/Form";
import TextField from "../../components/TextField/TextField";
Expand Down
1 change: 0 additions & 1 deletion src/hooks/useForm/useForm.test.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from "react";
import { test, vi } from "vitest";
import { renderHook, act } from "@testing-library/react-hooks";
// Hook
Expand Down
1 change: 1 addition & 0 deletions src/hooks/useIdle/useIdle.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import React from "react";
import { Text } from "../../components";
import useIdle from "./useIdle";

Expand Down
1 change: 0 additions & 1 deletion src/hooks/useIdle/useIdle.test.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from "react";
import { test, vi } from "vitest";
import { renderHook, act } from "@testing-library/react-hooks";
// Hook
Expand Down
1 change: 0 additions & 1 deletion src/hooks/useInterval/useInterval.test.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from "react";
import { test, vi } from "vitest";
import { renderHook, act } from "@testing-library/react-hooks";
// Hook
Expand Down
1 change: 0 additions & 1 deletion src/hooks/useKeyboardShortcut/useKeyboardShortcut.test.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from "react";
import { test, vi } from "vitest";
import { renderHook, act } from "@testing-library/react-hooks";
import { fireEvent } from "@testing-library/react";
Expand Down
1 change: 1 addition & 0 deletions src/hooks/useLocalStorage/useLocalStorage.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import React from "react";
import { Flex, Text, Button } from "../../components";
import useLocalStorage from "./useLocalStorage";
import { fr } from "../../utils";
Expand Down
1 change: 1 addition & 0 deletions src/hooks/useLocalization/useLocalization.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import React from "react";
import { Flex, Text, Button } from "../../components";
import useLocalization from "./useLocalization";
import { fr } from "../../utils";
Expand Down
1 change: 1 addition & 0 deletions src/hooks/useMediaQuery/useMediaQuery.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import React from "react";
// Components
import { Text } from "../../components";
// Hooks
Expand Down
1 change: 0 additions & 1 deletion src/hooks/useMediaQuery/useMediaQuery.test.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from "react";
import { test, vi } from "vitest";
import { renderHook, act } from "@testing-library/react-hooks";
// Hook
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useMemoization/useMemoization.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useState } from "react";
import React, { useState } from "react";
// Components
import { Stack, Button, Text } from "../../components";
// Hooks
Expand Down
1 change: 0 additions & 1 deletion src/hooks/useMemoization/useMemoization.test.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from "react";
import { test, vi } from "vitest";
import { renderHook, act } from "@testing-library/react-hooks";
// Hook
Expand Down
1 change: 1 addition & 0 deletions src/hooks/useNetworkStatus/useNetworkStatus.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import React from "react";
// Components
import { Stack, Text, Center } from "../../components";
// Hooks
Expand Down
2 changes: 2 additions & 0 deletions src/hooks/useOutsideClick/useOutsideClick.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import React from "react";

export default {
tags: ["autodocs"],
title: "Hooks/User Interface/useOutsideClick",
Expand Down
1 change: 0 additions & 1 deletion src/hooks/usePresence/usePresence.test.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from "react";
import { test, vi } from "vitest";
import { renderHook, act } from "@testing-library/react-hooks";
// Hook
Expand Down
1 change: 1 addition & 0 deletions src/hooks/useScroll/useScroll.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import React from "react";
import { Flex, Text, Button, Stack } from "../../components";
import useScroll from "./useScroll";
import { fr } from "../../utils";
Expand Down
1 change: 1 addition & 0 deletions src/hooks/useSearch/useSearch.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import React from "react";
import { Flex, TextField, List } from "../../components";
import useSearch from "./useSearch";
import { fr } from "../../utils";
Expand Down
1 change: 0 additions & 1 deletion src/hooks/useSearch/useSearch.test.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from "react";
import { test } from "vitest";
import { renderHook, act } from "@testing-library/react-hooks";
// Hook
Expand Down
1 change: 1 addition & 0 deletions src/hooks/useSorting/useSorting.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import React from "react";
import { Stack, Center, Button, Text } from "../../components";
import { fr } from "../../utils";
import useSorting from "./useSorting";
Expand Down
1 change: 1 addition & 0 deletions src/hooks/useToggle/useToggle.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import React from "react";
import { Flex, Text, Button } from "../../components";
import useToggle from "./useToggle";
import { fr } from "../../utils";
Expand Down

0 comments on commit bf81f71

Please sign in to comment.