reflactor(PluginsTab): reformat

This commit is contained in:
Cortex 2024-10-01 21:09:18 -06:00
parent 58c7eea90a
commit 434d0cf07d

View file

@ -27,21 +27,34 @@ export function StockPluginsCard({ totalStockPlugins, enabledStockPlugins }) {
}
export function UserPluginsCard({ totalUserPlugins, enabledUserPlugins }) {
if (totalUserPlugins <= 1) return (
if (totalUserPlugins <= 1)
return (
<div className="vc-plugin-stats vc-stockplugins-stats-card">
<div className="vc-plugin-stats-card-container ">
<div className="vc-plugin-stats-card-section">
<Text variant="text-md/semibold">Total UserPlugins</Text>
<Tooltip text={<img src="https://files.catbox.moe/x4plqa.png" style={{ width: "40px", height: "40px" }} />}>
<Tooltip
text={
<img
src="https://discord.com/assets/ab6835d2922224154ddf.svg"
style={{ width: "40px", height: "40px" }}
/>
}
>
{tooltipProps => (
<Text variant="heading-xl/bold" {...tooltipProps}>{totalUserPlugins}</Text>
<span style={{ display: "inline", position: "relative" }}>
<Text variant="heading-xl/bold" {...tooltipProps}>
{totalUserPlugins}
</Text>
</span>
)}
</Tooltip>
</div>
</div>
</div>
);
else return (
else
return (
<div className="vc-plugin-stats vc-stockplugins-stats-card">
<div className="vc-plugin-stats-card-container">
<div className="vc-plugin-stats-card-section">