fix(studio): destructure onAdd prop in BlockCard

This commit is contained in:
Miguel Ángel
2026-05-21 19:50:36 -04:00
parent 8c698d7f2c
commit d5518b26f1
@@ -275,6 +275,7 @@ function BlockCard({
tags,
posterUrl,
videoUrl,
onAdd,
onPreview,
}: {
name: string;
@@ -326,7 +327,7 @@ function BlockCard({
onAdd();
setTimeout(() => setAdding(false), 1000);
},
[adding],
[onAdd, adding],
);
const { activeCompPath, compositionDimensions } = useStudioContext();