diff --git a/.env b/.env index f21e947..ff98aa8 100644 --- a/.env +++ b/.env @@ -1,4 +1,4 @@ -VITE_API_URL=http://89.32.249.26:4010 +VITE_API_URL=https://dpage-api.danakcorp.com # VITE_API_URL=http://192.168.99.131:4000 VITE_TOKEN_NAME=dpage-editor-t VITE_REFRESH_TOKEN_NAME=dpage-editor-refresh-t \ No newline at end of file diff --git a/src/pages/editor/components/sidebar/instructions/StickerInstruction.tsx b/src/pages/editor/components/sidebar/instructions/StickerInstruction.tsx index 76a3b98..b1363d9 100644 --- a/src/pages/editor/components/sidebar/instructions/StickerInstruction.tsx +++ b/src/pages/editor/components/sidebar/instructions/StickerInstruction.tsx @@ -1,6 +1,6 @@ -import { useMemo } from "react"; import { useGetIconGroups } from "@/pages/editor/hooks/useIconData"; import { STICKER_DRAG_MIME } from "@/pages/editor/types/IconTypes"; +import { useMemo } from "react"; const StickerInstruction = () => { const { data, isLoading, isError } = useGetIconGroups(); @@ -10,7 +10,10 @@ const StickerInstruction = () => { return groups.flatMap((group) => group.icons); }, [data]); - const handleDragStart = (e: React.DragEvent, url: string) => { + const handleDragStart = ( + e: React.DragEvent, + url: string, + ) => { e.dataTransfer.setData(STICKER_DRAG_MIME, url); e.dataTransfer.effectAllowed = "copy"; }; @@ -35,7 +38,7 @@ const StickerInstruction = () => { )} {stickers.length > 0 && ( -
+
{stickers.map((icon) => (