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 d82001319f..96c1f1ab85 100644 --- a/apps/remix-ide/src/app/components/plugin-manager-component.js +++ b/apps/remix-ide/src/app/components/plugin-manager-component.js @@ -153,12 +153,6 @@ class PluginManagerComponent extends ViewPlugin { ReactDOM.render( , document.getElementById('pluginManager')) } diff --git a/libs/remix-ui/plugin-manager/src/lib/components/ActivateButton.tsx b/libs/remix-ui/plugin-manager/src/lib/components/ActivateButton.tsx index f1c3e9f4ad..586a89d8a8 100644 --- a/libs/remix-ui/plugin-manager/src/lib/components/ActivateButton.tsx +++ b/libs/remix-ui/plugin-manager/src/lib/components/ActivateButton.tsx @@ -1,4 +1,4 @@ -import React from 'react' +import React, { useState } from 'react' import { PluginManagerComponent } from '../../types' interface ActivateButtonProps { @@ -12,7 +12,7 @@ function ActivateButton ({ pluginName, pluginComponent }: ActivateButtonProps) { - const dataId = `pluginManagerComponent${buttonText}Button${pluginName}` + const [dataId] = useState(`pluginManagerComponent${buttonText}Button${pluginName}`) return (