Skip to content

Commit 4b2de5a

Browse files
Copilothuangyiirene
andcommitted
Fix JSX syntax error and test playground functionality successfully
Co-authored-by: huangyiirene <7665279+huangyiirene@users.noreply.github.com>
1 parent 1bc65d9 commit 4b2de5a

1 file changed

Lines changed: 2 additions & 9 deletions

File tree

apps/playground/src/pages/Studio.tsx

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -64,17 +64,15 @@ const StudioToolbarContext = ({
6464
setViewMode,
6565
onCopyJson,
6666
onSave,
67-
onShare,
68-
currentDesignId
67+
onShare
6968
}: {
7069
exampleTitle: string,
7170
jsonError: string | null,
7271
viewMode: ViewMode,
7372
setViewMode: (m: ViewMode) => void,
7473
onCopyJson: () => void,
7574
onSave: () => void,
76-
onShare: () => void,
77-
currentDesignId?: string
75+
onShare: () => void
7876
}) => {
7977
const navigate = useNavigate();
8078
const { canUndo, undo, canRedo, redo, schema } = useDesigner();
@@ -370,11 +368,6 @@ const StudioEditor = ({ exampleId, initialJson, isUserDesign, currentDesignId }:
370368
onCopyJson={handleCopySchema}
371369
onSave={handleSave}
372370
onShare={handleShare}
373-
currentDesignId={currentDesignId}
374-
/>
375-
viewMode={viewMode}
376-
setViewMode={setViewMode}
377-
onCopyJson={handleCopySchema}
378371
/>
379372

380373
{/* Main Content Area */}

0 commit comments

Comments
 (0)