Skip to content
This repository has been archived by the owner on Dec 27, 2024. It is now read-only.

Commit

Permalink
refactor: fix types import
Browse files Browse the repository at this point in the history
  • Loading branch information
taga3s committed Oct 30, 2024
1 parent ef8c216 commit 490fd82
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/features/common/components/layouts/FadeInLayout.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import type { ReactNode } from "@tanstack/react-router";
import type { FC } from "react";
import type { FC, ReactNode } from "react";

type Props = {
children: ReactNode;
Expand Down
12 changes: 10 additions & 2 deletions src/features/common/contexts/searchModalIsOpenContext.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
import { type Dispatch, type FC, type SetStateAction, createContext, useContext, useState } from "react";
import {
type Dispatch,
type FC,
type ReactNode,
type SetStateAction,
createContext,
useContext,
useState,
} from "react";

const searchModalIsOpenContext = createContext<boolean>(false);
const setSearchModalIsOpenContext = createContext<Dispatch<SetStateAction<boolean>>>(() => undefined);

type Props = {
children: React.ReactNode;
children: ReactNode;
};
export const SearchModalIsOpenProvider: FC<Props> = ({ children }) => {
const [searchModalIsOpen, setSearchModalIsOpen] = useState<boolean>(false);
Expand Down

0 comments on commit 490fd82

Please sign in to comment.