[WEB-5591] chore: update discount info component to use local SVG assets #8250

This commit is contained in:
b-saikrishnakanth
2025-12-08 13:47:26 +05:30
committed by GitHub
parent d9ea119588
commit 5ea74e1112
3 changed files with 25 additions and 6 deletions

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 39 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 39 KiB

View File

@@ -4,6 +4,9 @@ import type { TBillingFrequency } from "@plane/types";
import { EProductSubscriptionEnum } from "@plane/types";
import { cn } from "@plane/utils";
import ScribbleBlack from "@/app/assets/scribble/scribble-black.svg?url";
import ScribbleWhite from "@/app/assets/scribble/scribble-white.svg?url";
type TDiscountInfoProps = {
className?: string;
currency: string;
@@ -42,12 +45,8 @@ export function DiscountInfo({ className, currency, frequency, price, subscripti
{actualPrice != price && (
<span className={cn("relative", className)}>
<img
src={
resolvedTheme === "dark"
? "https://images.plane.so/pricing/hero/scribble-white.svg"
: "https://images.plane.so/pricing/hero/scribble-black.svg"
}
alt="image"
src={resolvedTheme === "dark" ? ScribbleWhite : ScribbleBlack}
alt="scribble"
className="absolute top-1/2 left-1/2 -translate-y-1/2 -translate-x-1/2 w-full scale-x-125"
/>
{currency}