diff --git a/src/app/(main)/pixels/PixelDeleteButton.tsx b/src/app/(main)/pixels/PixelDeleteButton.tsx index 4e5024dd..c90261e5 100644 --- a/src/app/(main)/pixels/PixelDeleteButton.tsx +++ b/src/app/(main)/pixels/PixelDeleteButton.tsx @@ -17,7 +17,7 @@ export function PixelDeleteButton({ const { mutateAsync, isPending, error } = useDeleteQuery(`/pixels/${pixelId}`); const { touch } = useModified(); - const handleConfirm = (close: () => void) => { + const handleConfirm = async (close: () => void) => { await mutateAsync(null, { onSuccess: () => { touch('pixels'); diff --git a/src/app/(main)/pixels/PixelEditButton.tsx b/src/app/(main)/pixels/PixelEditButton.tsx index a1310d44..12977b81 100644 --- a/src/app/(main)/pixels/PixelEditButton.tsx +++ b/src/app/(main)/pixels/PixelEditButton.tsx @@ -9,7 +9,7 @@ export function PixelEditButton({ pixelId }: { pixelId: string }) { return ( }> - + {({ close }) => { return ; }} diff --git a/src/app/(main)/pixels/PixelEditForm.tsx b/src/app/(main)/pixels/PixelEditForm.tsx index 9caae764..a3a4f0c8 100644 --- a/src/app/(main)/pixels/PixelEditForm.tsx +++ b/src/app/(main)/pixels/PixelEditForm.tsx @@ -106,10 +106,7 @@ export function PixelEditForm({ allowCopy style={{ width: '100%' }} /> -