pull/1857/head
filip mertens 3 years ago
parent 598bde1f20
commit f616f99ff7
  1. 1
      libs/remix-ui/app/src/lib/remix-app/components/panels/iFramePluginView.tsx
  2. 2
      libs/remix-ui/panel/src/lib/plugins/panel-plugin.tsx

@ -10,7 +10,6 @@ const IFramePluginView = (props: IFramePluginViewProps) => {
const [loading, isLoading] = useState<boolean>(true) const [loading, isLoading] = useState<boolean>(true)
const loaded = () => { const loaded = () => {
console.log(props.plugin.profile.name + "loaded")
props.plugin.shake(ref.current) props.plugin.shake(ref.current)
isLoading(false) isLoading(false)
} }

@ -10,7 +10,7 @@ const RemixUIPanelPlugin = (props: panelPLuginProps, panelRef: any) => {
const [view, setView] = useState<JSX.Element | HTMLDivElement>() const [view, setView] = useState<JSX.Element | HTMLDivElement>()
useEffect(() => { useEffect(() => {
console.log(panelRef) console.log(panelRef)
const ref:any = panelRef? panelRef : localRef const ref:any = panelRef || localRef
if (ref.current) { if (ref.current) {
if (props.pluginRecord.view) { if (props.pluginRecord.view) {
if (React.isValidElement(props.pluginRecord.view)) { if (React.isValidElement(props.pluginRecord.view)) {

Loading…
Cancel
Save