From 13d580d412e4cfbec2a35bc359f536aef6029528 Mon Sep 17 00:00:00 2001 From: pepeciavirella Date: Fri, 27 Dec 2019 10:24:36 -0300 Subject: [PATCH] Agrego logica de seleccion de colores ante ausencia de parametro color en CardRow --- src/components/exportable/CardRowExportable.tsx | 9 +++++++-- src/components/style/Colors/Color.ts | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/components/exportable/CardRowExportable.tsx b/src/components/exportable/CardRowExportable.tsx index e428755e..1a0442b3 100644 --- a/src/components/exportable/CardRowExportable.tsx +++ b/src/components/exportable/CardRowExportable.tsx @@ -4,7 +4,7 @@ import SerieApi, { METADATA } from "../../api/SerieApi"; import { ApiClient } from "../../api/ApiClient"; import { getAPIDefaultURI } from "../../helpers/previewCard/linkGenerators"; import QueryParams from "../../api/QueryParams"; -import { getCardColor } from "../style/Colors/Color"; +import { getCardColor, DEFAULT_COLORS } from "../style/Colors/Color"; import { DEFAULT_DECIMALS_BILLION, DEFAULT_DECIMALS_MILLION } from "../../helpers/common/LocaleValueFormatter"; import { ICardRowExportableConfig } from "../../indexCardRow"; import FullCard from "../exportable_card/FullCard"; @@ -140,12 +140,17 @@ export default class CardRowExportable extends React.Component