Skip to content

Commit 7e0b8c9

Browse files
LianaHusAniket-Engg
authored andcommitted
warning color
1 parent 37808e0 commit 7e0b8c9

File tree

4 files changed

+21
-19
lines changed

4 files changed

+21
-19
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ 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>
36-
</CustomTooltip>
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>
36+
</CustomTooltip>)
37+
: (<CustomTooltip placement="bottom" tooltipId="overlay-tooltip-external" tooltipClasses="text-nowrap" tooltipText={<FormattedMessage id="panel.maintainedExternally" />}>
38+
<i aria-hidden="true" className="mt-1 px-1 text-warning far fa-exclamation-circle"></i>
39+
</CustomTooltip>)
4040
}
4141
</div>
4242
)

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@ 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>
41-
</CustomTooltip>
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>
41+
</CustomTooltip>)
42+
: (<CustomTooltip placement="right-end" tooltipId="maintainedExternally" tooltipClasses="text-nowrap" tooltipText={<FormattedMessage id="panel.maintainedExternally" />}>
43+
<i aria-hidden="true" className="mt-1 px-1 text-warning far fa-exclamation-circle"></i>
44+
</CustomTooltip>)
4545
}
4646
</div>
4747
<div className="swapitHeaderInfoSection d-flex justify-content-between" data-id="swapitHeaderInfoSectionId" onClick={toggleClass}>

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,23 +17,24 @@ 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"
2424
tooltipClasses="text-nowrap"
2525
tooltipText={<FormattedMessage id="pluginManager.maintainedByRemix" />}
2626
>
2727
<i aria-hidden="true" className="px-1 text-success fas fa-check"></i>
28-
</CustomTooltip>
29-
: <CustomTooltip
28+
</CustomTooltip>)
29+
: (<CustomTooltip
3030
placement="right"
3131
tooltipId="pluginManagerActiveTitleExternally"
3232
tooltipClasses="text-nowrap"
3333
tooltipText={<FormattedMessage id="pluginManager.maintainedExternally" />}
3434
>
3535
<i aria-hidden="true" className="px-1 text-success fa-circle-exclamation"></i>
36-
</CustomTooltip>}
36+
</CustomTooltip>)
37+
}
3738
{profile.documentation && (
3839
<CustomTooltip
3940
placement="right"

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

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,23 +34,24 @@ 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"
4141
tooltipClasses="text-nowrap"
4242
tooltipText={<FormattedMessage id="pluginManager.maintainedByRemix" />}
4343
>
4444
<i aria-hidden="true" className="px-1 text-success fas fa-check"></i>
45-
</CustomTooltip>
46-
: <CustomTooltip
45+
</CustomTooltip>)
46+
: (<CustomTooltip
4747
placement="right"
4848
tooltipId="pluginManagerInactiveTitleExternally"
4949
tooltipClasses="text-nowrap"
5050
tooltipText={<FormattedMessage id="pluginManager.maintainedExternally" />}
5151
>
52-
<i aria-hidden="true" className="px-1 text-success fas fa-check"></i>
53-
</CustomTooltip>}
52+
<i aria-hidden="true" className="px-1 text-warning far fa-exclamation-circle"></i>
53+
</CustomTooltip>)
54+
}
5455
{profile.documentation && (
5556
<CustomTooltip
5657
placement="right"

0 commit comments

Comments
 (0)