diff --git a/libs/remix-ui/home-tab/src/lib/components/homeTabFeaturedPlugins.tsx b/libs/remix-ui/home-tab/src/lib/components/homeTabFeaturedPlugins.tsx index 10cf7d82bc..199a141ee7 100644 --- a/libs/remix-ui/home-tab/src/lib/components/homeTabFeaturedPlugins.tsx +++ b/libs/remix-ui/home-tab/src/lib/components/homeTabFeaturedPlugins.tsx @@ -122,7 +122,7 @@ function HomeTabFeaturedPlugins({ plugin }: HomeTabFeaturedPluginsProps) { description={intl.formatMessage({ id: 'home.codeAnalyizerPluginDesc' })} - remixMaintained={true} + maintainedBy='Remix' callback={() => startCodeAnalyzer()} /> startLearnEth()} /> startCookbook()} /> startSolidity()} /> startSolidityUnitTesting()} /> diff --git a/libs/remix-ui/home-tab/src/lib/components/pluginButton.tsx b/libs/remix-ui/home-tab/src/lib/components/pluginButton.tsx index 2a3e8d5040..4ef9c6f216 100644 --- a/libs/remix-ui/home-tab/src/lib/components/pluginButton.tsx +++ b/libs/remix-ui/home-tab/src/lib/components/pluginButton.tsx @@ -10,10 +10,10 @@ interface PluginButtonProps { callback: any l2?: boolean description: string - remixMaintained?: boolean + maintainedBy?: string } -function PluginButton({ imgPath, envID, envText, callback, l2, description, remixMaintained }: PluginButtonProps) { +function PluginButton({ imgPath, envID, envText, callback, l2, description, maintainedBy }: PluginButtonProps) { const themeFilter = useContext(ThemeContext) return ( @@ -30,13 +30,17 @@ function PluginButton({ imgPath, envID, envText, callback, l2, description, remi {l2 && } - {remixMaintained ? ( + { maintainedBy?.toLowerCase() === 'remix' ? ( }> - ) - : (}> - - ) + ) : + maintainedBy ? + ( + + ) + : (}> + + ) } ) diff --git a/libs/remix-ui/panel/src/lib/plugins/panel-header.tsx b/libs/remix-ui/panel/src/lib/plugins/panel-header.tsx index 2f21cf8fc1..64a9c912b2 100644 --- a/libs/remix-ui/panel/src/lib/plugins/panel-header.tsx +++ b/libs/remix-ui/panel/src/lib/plugins/panel-header.tsx @@ -48,13 +48,17 @@ const RemixUIPanelHeader = (props: RemixPanelProps) => {
- {plugin?.profile?.maintainedBy?.toLowerCase() === 'remix' ? ( - }> - - ) - : (}> - - ) + { plugin?.profile?.maintainedBy?.toLowerCase() === 'remix' ? ( + }> + + ) : + plugin?.profile?.maintainedBy ? + ( + + ) + : (}> + + ) }
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 4d1e29bd49..6241150a2e 100644 --- a/libs/remix-ui/plugin-manager/src/lib/components/ActivePluginCard.tsx +++ b/libs/remix-ui/plugin-manager/src/lib/components/ActivePluginCard.tsx @@ -26,14 +26,23 @@ function ActivePluginCard({ profile, buttonText, deactivatePlugin }: PluginCardP > ) - : (} - > - - ) + : profile?.maintainedBy ? ( + + + ) + : (} + > + + ) } {profile.documentation && ( } > ) - : (} - > - - ) + : profile?.maintainedBy ? ( + + + ) + : (} + > + + ) } {profile.documentation && (