mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-03 23:03:09 +00:00
fix(studio): destructure onAdd prop in BlockCard
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user