Skip to content

Commit

Permalink
limit size of render panel elements
Browse files Browse the repository at this point in the history
  • Loading branch information
evanping committed Jul 11, 2024
1 parent f15d7fa commit 25cc87a
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/app/editor/components/RenderDelibElement.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react";
import dynamic from "next/dynamic.js";
import React from 'react'
import dynamic from 'next/dynamic.js'

// import { Element } from "./../../../.././deliberation-empirica/client/src/elements/Element.jsx";
// import {
Expand All @@ -11,15 +11,15 @@ import dynamic from "next/dynamic.js";
const Element = dynamic(
() =>
import(
"./../../../.././deliberation-empirica/client/src/elements/Element.jsx"
'./../../../.././deliberation-empirica/client/src/elements/Element.jsx'
).then((mod) => mod.Element) as any,
{
ssr: false,
}
);
)

interface DelibElement {
element: any; // Replace 'any' with the appropriate type for 'element'
element: any // Replace 'any' with the appropriate type for 'element'
}

export default function RenderDelibElement(
Expand All @@ -33,12 +33,12 @@ export default function RenderDelibElement(
// TODO: Set necessary stuff in player, game, and stage

return (
<div>
<div className=" max-w-100 max-h-100">
<Element
// @ts-ignore
element={element.element as any}
onSubmit={() => console.log("submit")}
onSubmit={() => console.log('submit')}
/>
</div>
);
)
}

0 comments on commit 25cc87a

Please sign in to comment.