diff --git a/apps/remix-ide/src/app/tabs/debugger-tab.js b/apps/remix-ide/src/app/tabs/debugger-tab.js
index 6ac7235c09..6253c594e5 100644
--- a/apps/remix-ide/src/app/tabs/debugger-tab.js
+++ b/apps/remix-ide/src/app/tabs/debugger-tab.js
@@ -51,9 +51,8 @@ export class DebuggerTab extends DebuggerApiMixin(ViewPlugin) {
this.on('fetchAndCompile', 'sourceVerificationNotAvailable', () => {
this.call('notification', 'toast', sourceVerificationNotAvailableToastMsg())
})
-
- this.renderComponent()
- return this.el
+
+ return
}
showMessage (title, message) {
@@ -68,9 +67,4 @@ export class DebuggerTab extends DebuggerApiMixin(ViewPlugin) {
}
}
- renderComponent () {
- ReactDOM.render(
-
- , this.el)
- }
}
diff --git a/apps/remix-ide/src/app/tabs/settings-tab.js b/apps/remix-ide/src/app/tabs/settings-tab.js
index 133ae6ee5f..507a784a69 100644
--- a/apps/remix-ide/src/app/tabs/settings-tab.js
+++ b/apps/remix-ide/src/app/tabs/settings-tab.js
@@ -33,11 +33,19 @@ module.exports = class SettingsTab extends ViewPlugin {
}
onActivation () {
- this.renderComponent()
}
- render () {
- return this.element
+ render() {
+ return (
+
+
+
+ );
}
renderComponent () {
diff --git a/libs/remix-ui/app/src/lib/remix-app/remix-app.tsx b/libs/remix-ui/app/src/lib/remix-app/remix-app.tsx
index 616400a5a8..0eb62e790b 100644
--- a/libs/remix-ui/app/src/lib/remix-app/remix-app.tsx
+++ b/libs/remix-ui/app/src/lib/remix-app/remix-app.tsx
@@ -92,14 +92,14 @@ export const ViewPluginUI = (props: IViewPluginUI) => {
const [state, setState] = useState(null)
useEffect(() => {
- console.log(props.plugin)
+ // console.log(props.plugin)
if(props.plugin.setDispatch){
props.plugin.setDispatch(setState)
}
}, [])
useEffect(() => {
- console.log(state)
+ // console.log(state)
}, [state])
return (
diff --git a/libs/remix-ui/panel/src/lib/plugins/panel-plugin.tsx b/libs/remix-ui/panel/src/lib/plugins/panel-plugin.tsx
index 9eb30391bc..7611b175d0 100644
--- a/libs/remix-ui/panel/src/lib/plugins/panel-plugin.tsx
+++ b/libs/remix-ui/panel/src/lib/plugins/panel-plugin.tsx
@@ -10,8 +10,14 @@ const RemixUIPanelPlugin = (props: panelPLuginProps, panelRef: any) => {
const localRef = useRef(null)
const [view, setView] = useState()
useEffect(() => {
+
const ref:any = panelRef || localRef
if (ref.current) {
+ if(React.isValidElement(props.pluginRecord.view)) {
+ console.log('is REACT element', props.pluginRecord.profile.name)
+ }else{
+ console.log('is HTML element', props.pluginRecord.profile.name)
+ }
if (props.pluginRecord.view) {
if (React.isValidElement(props.pluginRecord.view)) {
setView(props.pluginRecord.view)