[st] chore: eslint 해결
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
export { getCookie, setCookie, removeCookie } from "./cookie";
|
||||
export { useMutationWrapper } from "./use-mutation-wrapper";
|
||||
export { getCookie, removeCookie,setCookie } from "./cookie";
|
||||
export { useAlertStore } from "./use-alert-store";
|
||||
export { useDataTable } from "./use-data-table";
|
||||
export { useGlobalProgressStore } from "./use-global-progress-store";
|
||||
export { useMenuStore } from "./use-menu-store";
|
||||
export { useUserStore } from "./use-user-store";
|
||||
export { useMutationWrapper } from "./use-mutation-wrapper";
|
||||
export { usePrompt } from "./use-prompt";
|
||||
export { useSelectPrompt } from "./use-select-prompt";
|
||||
export {
|
||||
isRegAuthorityAllowed,
|
||||
useActiveTabRegAuthorityAllowed,
|
||||
useStatisticsInputToolbarGroupGate,
|
||||
} from "./use-statistics-input-toolbar-group-gate";
|
||||
export { usePrompt } from "./use-prompt";
|
||||
export { useSelectPrompt } from "./use-select-prompt";
|
||||
export { useUserStore } from "./use-user-store";
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
import type { ReactElement } from "react";
|
||||
|
||||
import { type UseQueryResult } from "@tanstack/react-query";
|
||||
|
||||
import type { PageableList } from "../model";
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
import { menuMatchesStatisticsTabId } from "@/shared/lib/statistics-menu-url";
|
||||
import type { MenuItem } from "@/entities/menu";
|
||||
|
||||
import type { SearchFormValues } from "@/components/type/SearchForm.type";
|
||||
import { doNameList } from "@/components/util/column/input/DoList";
|
||||
import { menuMatchesStatisticsTabId } from "@/shared/lib/statistics-menu-url";
|
||||
import {
|
||||
EXCRETA_TREATMENT_FACILITY_INP_TAB_KEYS,
|
||||
INPUT_TAB_KEY_BY_STATS_CD,
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
import { useStore } from "zustand";
|
||||
import { useContext } from "react";
|
||||
import type { AlertStore } from "../store/alert-store";
|
||||
|
||||
import { useStore } from "zustand";
|
||||
|
||||
import { StoreContext } from "../providers/store-provider";
|
||||
import type { AlertStore } from "../store/alert-store";
|
||||
|
||||
export const useAlertStore = <T>(selector: (store: AlertStore) => T): T => {
|
||||
const storeContext = useContext(StoreContext);
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
import { useStore } from "zustand";
|
||||
import { useContext } from "react";
|
||||
import type { AttachmentStore } from "../store/attachment-store";
|
||||
|
||||
import { useStore } from "zustand";
|
||||
|
||||
import { StoreContext } from "../providers/store-provider";
|
||||
import type { AttachmentStore } from "../store/attachment-store";
|
||||
|
||||
export const useAttachmentStore = <T>(
|
||||
selector: (store: AttachmentStore) => T,
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
import { useContext } from "react";
|
||||
|
||||
import { useStore } from "zustand";
|
||||
import type { GlobalProgressStore } from "../store/global-progress-store";
|
||||
|
||||
import { StoreContext } from "../providers/store-provider";
|
||||
import type { GlobalProgressStore } from "../store/global-progress-store";
|
||||
|
||||
export const useGlobalProgressStore = <T>(
|
||||
selector: (store: GlobalProgressStore) => T,
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
import { useStore } from "zustand";
|
||||
import { useContext } from "react";
|
||||
import type { MenuStore } from "../store/menu-store";
|
||||
|
||||
import { useStore } from "zustand";
|
||||
|
||||
import { StoreContext } from "../providers/store-provider";
|
||||
import type { MenuStore } from "../store/menu-store";
|
||||
|
||||
export const useMenuStore = <T>(selector: (store: MenuStore) => T): T => {
|
||||
const storeContext = useContext(StoreContext);
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { useContext } from "react";
|
||||
|
||||
import { PromptContext } from "../providers/prompt-provider";
|
||||
|
||||
export const usePrompt = () => {
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { useContext, useEffect } from "react";
|
||||
|
||||
import { PromptContext } from "../providers/prompt-provider";
|
||||
|
||||
type SelectData = {
|
||||
|
||||
@@ -2,11 +2,12 @@
|
||||
|
||||
import { useEffect, useLayoutEffect, useRef, useState } from "react";
|
||||
|
||||
import type { SearchFormValues } from "@/components/type/SearchForm.type";
|
||||
import {
|
||||
verificationSearchToFormValues,
|
||||
type StatisticsInputPendingSearch,
|
||||
verificationSearchToFormValues,
|
||||
} from "@/shared/lib/stats-cd-input-navigation";
|
||||
|
||||
import type { SearchFormValues } from "@/components/type/SearchForm.type";
|
||||
import { useStatisticsInputFocusStore } from "@/store/statistics-input-focus-store";
|
||||
import { useTabStore } from "@/store/tab-store";
|
||||
|
||||
|
||||
@@ -3,18 +3,19 @@
|
||||
import { useEffect, useRef } from "react";
|
||||
import { useRouter, useSearchParams } from "next/navigation";
|
||||
|
||||
import type { MenuItem } from "@/entities/menu";
|
||||
import { isBbsNoticeMenu } from "@/shared/lib/bbs-notice-menu";
|
||||
import { findMenuItemByUrlPath } from "@/shared/lib/stats-cd-input-navigation";
|
||||
import { getTabStoreState } from "@/store/tab-store";
|
||||
import type { MenuItem } from "@/entities/menu";
|
||||
|
||||
import {
|
||||
STATISTICS_ROUTE,
|
||||
STATISTICS_TAB_QUERY_KEY,
|
||||
buildStatisticsTabUrl,
|
||||
isStatisticsPathname,
|
||||
STATISTICS_ROUTE,
|
||||
STATISTICS_TAB_QUERY_KEY,
|
||||
} from "./statistics-tab-url";
|
||||
|
||||
import { getTabStoreState } from "@/store/tab-store";
|
||||
|
||||
type UseStatisticsTabUrlSyncParams = {
|
||||
pathname: string | null;
|
||||
menuList: MenuItem[] | null;
|
||||
|
||||
@@ -1,9 +1,12 @@
|
||||
import { useEffect, useState } from "react";
|
||||
|
||||
import { type HttpResponse, Upload } from "tus-js-client";
|
||||
|
||||
import { AUTH_USER_ID, CLAIM_NAME, ENDPOINT } from "../config";
|
||||
import { useAttachmentStore } from "./use-attachment-store";
|
||||
import { useAlertStore } from "./use-alert-store";
|
||||
|
||||
import { getCookie } from "./cookie";
|
||||
import { useAlertStore } from "./use-alert-store";
|
||||
import { useAttachmentStore } from "./use-attachment-store";
|
||||
|
||||
type TusProps = {
|
||||
accept?: string;
|
||||
|
||||
Reference in New Issue
Block a user