refactor: consolidate shared application helpers
This commit is contained in:
@@ -21,7 +21,7 @@ import {
|
||||
import { Plus, Trash, ArrowUp, ArrowDown, Loader2, Image as ImageIcon, X, Check, GripVertical, AlertCircle } from "lucide-react";
|
||||
import Image from 'next/image';
|
||||
import { RichTextEditor } from "@/components/rich-text-editor";
|
||||
import { getErrorMessage } from "@/lib/errors";
|
||||
import { getErrorMessage } from "@/lib/utils";
|
||||
import {
|
||||
Accordion,
|
||||
AccordionContent,
|
||||
|
||||
@@ -19,7 +19,7 @@ import {
|
||||
DropdownMenuTrigger,
|
||||
} from "@/components/ui/dropdown-menu";
|
||||
import { ScrollArea } from "@/components/ui/scroll-area"
|
||||
import { getErrorMessage } from "@/lib/errors";
|
||||
import { getErrorMessage } from "@/lib/utils";
|
||||
import {
|
||||
isValidDiscordWebhookUrl,
|
||||
previewWebhookTemplate,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { db } from "@/db";
|
||||
import { cdnImageResponse } from "@/lib/cdn-response";
|
||||
import { cdnImageResponse } from "@/lib/cdn-images";
|
||||
|
||||
export async function GET(
|
||||
_request: Request,
|
||||
|
||||
+1
-1
@@ -35,7 +35,7 @@ import {
|
||||
FormMessage,
|
||||
} from "@/components/ui/form";
|
||||
import { DropdownMenuAvatar, DiscordMemberProfile } from "@/components/dropdown-menu-avatar";
|
||||
import { getErrorMessage } from "@/lib/errors";
|
||||
import { getErrorMessage } from "@/lib/utils";
|
||||
import {
|
||||
Accordion,
|
||||
AccordionContent,
|
||||
|
||||
Reference in New Issue
Block a user