Skip to content

Commit

Permalink
feat(ui-hooks): rename filename
Browse files Browse the repository at this point in the history
  • Loading branch information
skamril committed Jan 22, 2025
1 parent c9c8700 commit c5d3157
Show file tree
Hide file tree
Showing 9 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion webapp/src/components/common/Form/useFormApiPlus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import type {
} from "react-hook-form";
import * as RA from "ramda-adjunct";
import { useEffect, useMemo, useRef } from "react";
import useAutoUpdateRef from "../../../hooks/useAutoUpdateRef";
import useAutoUpdateRef from "../../../hooks/useUpdatedRef";
import type {
UseFormRegisterPlus,
UseFormReturnPlus,
Expand Down
2 changes: 1 addition & 1 deletion webapp/src/components/common/Form/useFormUndoRedo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import type { FieldValues } from "react-hook-form";
import { useCallback, useEffect, useRef } from "react";
import * as R from "ramda";
import type { UseFormReturnPlus } from "./types";
import useAutoUpdateRef from "../../../hooks/useAutoUpdateRef";
import useAutoUpdateRef from "../../../hooks/useUpdatedRef";

enum ActionType {
Undo = "UNDO",
Expand Down
2 changes: 1 addition & 1 deletion webapp/src/components/common/GroupedDataTable/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import ConfirmationDialog from "../dialogs/ConfirmationDialog";
import { generateUniqueValue, getTableOptionsForAlign } from "./utils";
import DuplicateDialog from "./DuplicateDialog";
import { translateWithColon } from "../../../utils/i18nUtils";
import useAutoUpdateRef from "../../../hooks/useAutoUpdateRef";
import useAutoUpdateRef from "../../../hooks/useUpdatedRef";
import * as R from "ramda";
import * as RA from "ramda-adjunct";
import type { PromiseAny } from "../../../utils/tsUtils";
Expand Down
2 changes: 1 addition & 1 deletion webapp/src/components/common/JSONEditor/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import { useDeepCompareEffect, useMount } from "react-use";
import "jsoneditor/dist/jsoneditor.min.css";
import "./dark-theme.css";
import type { PromiseAny } from "../../../utils/tsUtils";
import useAutoUpdateRef from "../../../hooks/useAutoUpdateRef";
import useAutoUpdateRef from "../../../hooks/useUpdatedRef";
import { createSaveButton } from "./utils";
import * as R from "ramda";
import * as RA from "ramda-adjunct";
Expand Down
2 changes: 1 addition & 1 deletion webapp/src/hooks/useBlocker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import type { History, Transition } from "history";
import { useContext, useEffect } from "react";
import { UNSAFE_NavigationContext as NavigationContext } from "react-router-dom";
import useAutoUpdateRef from "./useAutoUpdateRef";
import useAutoUpdateRef from "./useUpdatedRef";

// * Workaround until it will be supported by react-router v6.
// * Based on https://ui.dev/react-router-preventing-transitions
Expand Down
2 changes: 1 addition & 1 deletion webapp/src/hooks/useConfirm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
*/

import { useCallback, useRef, useState } from "react";
import useAutoUpdateRef from "./useAutoUpdateRef";
import useAutoUpdateRef from "./useUpdatedRef";

function errorFunction() {
throw new Error("Promise is not pending.");
Expand Down
2 changes: 1 addition & 1 deletion webapp/src/hooks/usePromiseHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { type SnackbarKey, useSnackbar } from "notistack";
import useEnqueueErrorSnackbar from "./useEnqueueErrorSnackbar";
import { toError } from "../utils/fnUtils";
import { useCallback } from "react";
import useAutoUpdateRef from "./useAutoUpdateRef";
import useAutoUpdateRef from "./useUpdatedRef";

interface UsePromiseHandlerParams<T extends unknown[], U> {
fn: (...args: T) => Promise<U>;
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit c5d3157

Please sign in to comment.