Skip to content

Commit 37808e0

Browse files
LianaHusAniket-Engg
authored andcommitted
added external alert
1 parent 26c7201 commit 37808e0

File tree

5 files changed

+29
-8
lines changed

5 files changed

+29
-8
lines changed

apps/remix-ide/src/app/tabs/locales/en/panel.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"panel.documentation": "Documentation",
55
"panel.description": "Description",
66
"panel.maintainedByRemix": "Maintained by Remix",
7+
"panel.maintainedExternally": "Be aware that the plugin is not maintained by Remix",
78
"panel.pluginInfo": "Plugin info",
89
"panel.linkToDoc": "Link to documentation",
910
"panel.makeAnissue": "Make an issue"

libs/remix-ui/home-tab/src/lib/components/pluginButton.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,14 @@ function PluginButton({imgPath, envID, envText, callback, l2, description, remix
3030
</div>
3131
</button>
3232
{l2 && <label className="bg-light mx-1 px-1 mb-0 mx-2 position-absolute remixui_home_l2Label">L2</label>}
33-
{remixMaintained && (
33+
{remixMaintained ?
3434
<CustomTooltip placement="bottom" tooltipId="overlay-tooltip-by-remix" tooltipText={<FormattedMessage id="home.maintainedByRemix" />}>
3535
<i className="bg-light text-success mx-1 px-1 mb-0 mx-2 position-absolute remixui_home_maintainedLabel fas fa-check"></i>
3636
</CustomTooltip>
37-
)}
37+
: <CustomTooltip placement="bottom" tooltipId="overlay-tooltip-external" tooltipClasses="text-nowrap" tooltipText={<FormattedMessage id="panel.maintainedExternally" />}>
38+
<i aria-hidden="true" className="text-success mt-1 px-1 fa-circle-exclamation"></i>
39+
</CustomTooltip>
40+
}
3841
</div>
3942
)
4043
}

libs/remix-ui/panel/src/lib/plugins/panel-header.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,14 @@ const RemixUIPanelHeader = (props: RemixPanelProps) => {
3535
</h6>
3636
<div className="d-flex flex-row">
3737
<div className="d-flex flex-row">
38-
{plugin?.profile?.maintainedBy?.toLowerCase() === 'remix' && (
38+
{plugin?.profile?.maintainedBy?.toLowerCase() === 'remix' ?
3939
<CustomTooltip placement="right-end" tooltipId="maintainedByTooltip" tooltipClasses="text-nowrap" tooltipText={<FormattedMessage id="panel.maintainedByRemix" />}>
4040
<i aria-hidden="true" className="text-success mt-1 px-1 fas fa-check"></i>
4141
</CustomTooltip>
42-
)}
42+
: <CustomTooltip placement="right-end" tooltipId="maintainedExternally" tooltipClasses="text-nowrap" tooltipText={<FormattedMessage id="panel.maintainedExternally" />}>
43+
<i aria-hidden="true" className="text-success mt-1 px-1 fa-circle-exclamation"></i>
44+
</CustomTooltip>
45+
}
4346
</div>
4447
<div className="swapitHeaderInfoSection d-flex justify-content-between" data-id="swapitHeaderInfoSectionId" onClick={toggleClass}>
4548
<CustomTooltip placement="right-end" tooltipText={<FormattedMessage id="panel.pluginInfo" />} tooltipId="pluginInfoTooltip" tooltipClasses="text-nowrap">

libs/remix-ui/plugin-manager/src/lib/components/ActivePluginCard.tsx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ function ActivePluginCard({profile, buttonText, deactivatePlugin}: PluginCardPro
1717
<h6 className="remixui_displayName plugin-name">
1818
<div>
1919
{profile.displayName || profile.name}
20-
{profile?.maintainedBy?.toLowerCase() == 'remix' && (
20+
{profile?.maintainedBy?.toLowerCase() == 'remix' ?
2121
<CustomTooltip
2222
placement="right"
2323
tooltipId="pluginManagerActiveTitleByRemix"
@@ -26,7 +26,14 @@ function ActivePluginCard({profile, buttonText, deactivatePlugin}: PluginCardPro
2626
>
2727
<i aria-hidden="true" className="px-1 text-success fas fa-check"></i>
2828
</CustomTooltip>
29-
)}
29+
: <CustomTooltip
30+
placement="right"
31+
tooltipId="pluginManagerActiveTitleExternally"
32+
tooltipClasses="text-nowrap"
33+
tooltipText={<FormattedMessage id="pluginManager.maintainedExternally" />}
34+
>
35+
<i aria-hidden="true" className="px-1 text-success fa-circle-exclamation"></i>
36+
</CustomTooltip>}
3037
{profile.documentation && (
3138
<CustomTooltip
3239
placement="right"

libs/remix-ui/plugin-manager/src/lib/components/InactivePluginCard.tsx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ function InactivePluginCard({profile, buttonText, activatePlugin}: PluginCardPro
3434
<h6 className="remixui_displayName plugin-name">
3535
<div>
3636
{profile.displayName || profile.name}
37-
{profile?.maintainedBy?.toLowerCase() == 'remix' && (
37+
{profile?.maintainedBy?.toLowerCase() == 'remix' ?
3838
<CustomTooltip
3939
placement="right"
4040
tooltipId="pluginManagerInactiveTitleByRemix"
@@ -43,7 +43,14 @@ function InactivePluginCard({profile, buttonText, activatePlugin}: PluginCardPro
4343
>
4444
<i aria-hidden="true" className="px-1 text-success fas fa-check"></i>
4545
</CustomTooltip>
46-
)}
46+
: <CustomTooltip
47+
placement="right"
48+
tooltipId="pluginManagerInactiveTitleExternally"
49+
tooltipClasses="text-nowrap"
50+
tooltipText={<FormattedMessage id="pluginManager.maintainedExternally" />}
51+
>
52+
<i aria-hidden="true" className="px-1 text-success fas fa-check"></i>
53+
</CustomTooltip>}
4754
{profile.documentation && (
4855
<CustomTooltip
4956
placement="right"

0 commit comments

Comments
 (0)