Skip to content

Commit

Permalink
Display components on preview page.
Browse files Browse the repository at this point in the history
  • Loading branch information
vinaymavi committed Apr 10, 2024
1 parent 315006b commit af790b5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/RenderLayoutComponent/RenderLayoutComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export default function RenderLayoutComponent({
layoutId,
sceneId,
content,
isNone = false,
}: IRenderLayoutComponentProps) {
const [LayoutReactComponent, setLayoutReactComponent] = useState<
React.FunctionComponent<any> | undefined
Expand All @@ -28,7 +29,7 @@ export default function RenderLayoutComponent({
<div>
{content && LayoutReactComponent && (
<LayoutReactComponent
isNone={true}
isNone={isNone}
content={content}
sceneId={sceneId}
ref={ref}
Expand All @@ -40,4 +41,5 @@ export default function RenderLayoutComponent({

export interface IRenderLayoutComponentProps extends ILayoutProps {
layoutId: string;
isNone: boolean;
}
1 change: 1 addition & 0 deletions components/SceneEditor/SceneEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ const SceneEditor = ({ sceneDocId }: ISceneEditorProps) => {
<div>
<img id={"canvas"} src={""} />
<RenderLayoutComponent
isNone={true}
content={sceneContent}
sceneId={selectedSceneId}
layoutId={selectedLayoutId}
Expand Down

0 comments on commit af790b5

Please sign in to comment.