diff --git a/apps/remix-ide/src/app/components/plugin-manager-component.js b/apps/remix-ide/src/app/components/plugin-manager-component.js index ac7cd88433..b6d25870a3 100644 --- a/apps/remix-ide/src/app/components/plugin-manager-component.js +++ b/apps/remix-ide/src/app/components/plugin-manager-component.js @@ -125,29 +125,6 @@ class PluginManagerComponent extends ViewPlugin { document.getElementById('pluginManager')) } - /*************** - * SUB-COMPONENT - */ - /** - * Add a local plugin to the list of plugins - */ - // async openLocalPlugin () { - // try { - // const profile = await this.localPlugin.open(this.appManager.getAll()) - // if (!profile) return - // if (this.appManager.getIds().includes(profile.name)) { - // throw new Error('This name has already been used') - // } - // const plugin = profile.type === 'iframe' ? new IframePlugin(profile) : new WebsocketPlugin(profile) - // this.engine.register(plugin) - // await this.appManager.activatePlugin(plugin.name) - // } catch (err) { - // // TODO : Use an alert to handle this error instead of a console.log - // console.log(`Cannot create Plugin : ${err.message}`) - // addToolTip(`Cannot create Plugin : ${err.message}`) - // } - // } - render () { return this.htmlElement } diff --git a/libs/remix-ui/plugin-manager/src/lib/components/ActivePluginCard.tsx b/libs/remix-ui/plugin-manager/src/lib/components/ActivePluginCard.tsx index b7b0fccea0..e90417d76a 100644 --- a/libs/remix-ui/plugin-manager/src/lib/components/ActivePluginCard.tsx +++ b/libs/remix-ui/plugin-manager/src/lib/components/ActivePluginCard.tsx @@ -1,6 +1,8 @@ +/* eslint-disable no-debugger */ import { Profile } from '@remixproject/plugin-utils' import React, { Dispatch, useState } from 'react' import '../remix-ui-plugin-manager.css' +import * as _ from 'lodash' interface PluginCardProps { // profile: Profile & { // icon?: string @@ -49,17 +51,13 @@ function ActivePluginCard ({ {