mirror of
https://github.com/makeplane/plane.git
synced 2025-12-16 11:57:56 +01:00
[WEB-5591] chore: update discount info component to use local SVG assets #8250
This commit is contained in:
committed by
GitHub
parent
d9ea119588
commit
5ea74e1112
10
apps/web/app/assets/scribble/scribble-black.svg
Normal file
10
apps/web/app/assets/scribble/scribble-black.svg
Normal file
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 39 KiB |
10
apps/web/app/assets/scribble/scribble-white.svg
Normal file
10
apps/web/app/assets/scribble/scribble-white.svg
Normal file
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 39 KiB |
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user