feat(dashboard): SO cart item total rules UI (#10386)

This commit is contained in:
Kasper Fabricius Kristensen
2024-12-09 09:44:11 +01:00
committed by GitHub
parent 9e797dc3d2
commit a1a1e0e789
33 changed files with 1947 additions and 190 deletions
@@ -1,5 +1,5 @@
import { BuildingTax } from "@medusajs/icons"
import { Tooltip, clx } from "@medusajs/ui"
import { TaxExclusive, TaxInclusive } from "@medusajs/icons"
import { Tooltip } from "@medusajs/ui"
import { useTranslation } from "react-i18next"
type IncludesTaxTooltipProps = {
@@ -20,9 +20,11 @@ export const IncludesTaxTooltip = ({
: t("general.excludesTaxTooltip")
}
>
<BuildingTax
className={clx("shrink-0", { "text-ui-fg-muted": !includesTax })}
/>
{includesTax ? (
<TaxInclusive className="text-ui-fg-muted shrink-0" />
) : (
<TaxExclusive className="text-ui-fg-muted shrink-0" />
)}
</Tooltip>
)
}