diff --git a/src/Assets/images/ring_card_blue.svg b/src/Assets/images/ring_card_blue.svg new file mode 100644 index 0000000..ad29e8c --- /dev/null +++ b/src/Assets/images/ring_card_blue.svg @@ -0,0 +1,8 @@ + diff --git a/src/Assets/images/ring_card_navy_blue.svg b/src/Assets/images/ring_card_navy_blue.svg new file mode 100644 index 0000000..840e34b --- /dev/null +++ b/src/Assets/images/ring_card_navy_blue.svg @@ -0,0 +1,8 @@ + diff --git a/src/Assets/images/ring_card_orange.svg b/src/Assets/images/ring_card_orange.svg new file mode 100644 index 0000000..7aa2bc5 --- /dev/null +++ b/src/Assets/images/ring_card_orange.svg @@ -0,0 +1,8 @@ + diff --git a/src/Components/Chart/CardQuant/index.tsx b/src/Components/Chart/CardQuant/index.tsx index 2930a19..455d61a 100644 --- a/src/Components/Chart/CardQuant/index.tsx +++ b/src/Components/Chart/CardQuant/index.tsx @@ -1,13 +1,36 @@ import styles from "../../../Styles"; import { Column } from "../../../Styles/styles"; +import ring_card_orange from "../../../Assets/images/ring_card_orange.svg"; +import ring_card_blue from "../../../Assets/images/ring_card_blue.svg"; +import ring_card_navy_blue from "../../../Assets/images/ring_card_navy_blue.svg"; + const CardQuant = ({ title, quant, color }: { title: string; quant: number | string, color?: "orange"| "blue"| "navy_blue" }) => { + const ringCardImage = + color === "blue"? ring_card_orange // Usar ring_card_orange se for azul + : color === "navy_blue" ? ring_card_blue // Usar ring_card_blue se for navy_blue + : ring_card_navy_blue; // Usar ring_card_navy_blue se for orange + return ( -