refactor: consolidate shared application helpers
This commit is contained in:
@@ -28,7 +28,7 @@ import {
|
||||
AlertDialogTrigger,
|
||||
} from "@/components/ui/alert-dialog";
|
||||
import { Spinner } from "@/components/ui/spinner";
|
||||
import { getErrorMessage } from "@/lib/errors";
|
||||
import { getErrorMessage } from "@/lib/utils";
|
||||
|
||||
interface DeleteFormButtonProps {
|
||||
formId: string;
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
import type { ComponentProps, MouseEvent } from "react";
|
||||
import Link from "next/link";
|
||||
import { useRouter } from "next/navigation";
|
||||
import { flushPendingSaves } from "@/lib/admin-form-save-bridge";
|
||||
import { flushPendingSaves } from "@/hooks/use-debounced-autosave";
|
||||
|
||||
export function GuardedLink({
|
||||
href,
|
||||
|
||||
Reference in New Issue
Block a user