@@ -145,7 +147,7 @@ const IconsEditor = ({
className="w-12 h-12 cursor-pointer group relative rounded-lg overflow-hidden hover:bg-gray-100 p-2 transition-colors"
>
})
diff --git a/servers/nextjs/app/(presentation-generator)/presentation/hooks/PresentationUndoRedo.ts b/servers/nextjs/app/(presentation-generator)/presentation/hooks/PresentationUndoRedo.ts
index 7128c057..f2156262 100644
--- a/servers/nextjs/app/(presentation-generator)/presentation/hooks/PresentationUndoRedo.ts
+++ b/servers/nextjs/app/(presentation-generator)/presentation/hooks/PresentationUndoRedo.ts
@@ -16,7 +16,6 @@ export const usePresentationUndoRedo = () => {
const canUndo = undoRedoState.past.length > 0;
const canRedo = undoRedoState.future.length > 0;
- console.log(canUndo, canRedo);
const onUndo = useCallback(() => {
if (!canUndo) return;
diff --git a/servers/nextjs/app/hooks/useRemoteSvgIcon.tsx b/servers/nextjs/app/hooks/useRemoteSvgIcon.tsx
index 88aa48bd..41f18bbc 100644
--- a/servers/nextjs/app/hooks/useRemoteSvgIcon.tsx
+++ b/servers/nextjs/app/hooks/useRemoteSvgIcon.tsx
@@ -144,6 +144,7 @@ export function useRemoteSvgIcon(url?: string, options: RemoteSvgOptions = {}) {
return;
}
try {
+
const res = await fetch(url);
if (!res.ok) {
throw new Error(`HTTP ${res.status}`);
@@ -188,7 +189,7 @@ export const RemoteSvgIcon: React.FC<{
title?: string;
color?: string;
}> = ({ url, strokeColor, fillColor, className, title, color }) => {
- const { svgMarkup } = useRemoteSvgIcon(url, { strokeColor, fillColor, className, title, color });
+ const { svgMarkup } = useRemoteSvgIcon(`http://localhost:5000${url}`, { strokeColor, fillColor, className, title, color });
if (!svgMarkup) return null;
return (
);
-};
-
-
+};
\ No newline at end of file