From 0e8803f24e38c942df9ca091eb7b672ae3bd99b3 Mon Sep 17 00:00:00 2001 From: Stefanos Hadjipetrou Date: Wed, 8 Mar 2023 16:03:30 +0100 Subject: [PATCH] chore: more color codes replacement from theme --- src/app/components/Charts/Network/index.tsx | 2 +- .../Charts/common/breadcrumbs/index.tsx | 13 ++++++----- src/app/components/PageHeader/index.tsx | 1 - .../components/ResultsTable/index.tsx | 6 +++-- src/app/components/RangeSlider/index.tsx | 4 ++-- .../components/controlrow/index.tsx | 18 ++++++++------- .../components/datapath/index.tsx | 21 +++++------------- src/app/modules/about-module/index.tsx | 2 +- src/app/modules/about-module/links.tsx | 7 +++--- .../modules/common/no-match-page/index.tsx | 9 ++++---- .../components/sub-modules/overview/index.tsx | 4 ++-- .../sub-modules/budgets/flow/index.tsx | 7 +++++- src/app/theme/index.ts | 22 +++++++++++++++++++ 13 files changed, 70 insertions(+), 46 deletions(-) diff --git a/src/app/components/Charts/Network/index.tsx b/src/app/components/Charts/Network/index.tsx index 1b8b50099..74ab6926c 100644 --- a/src/app/components/Charts/Network/index.tsx +++ b/src/app/components/Charts/Network/index.tsx @@ -61,7 +61,7 @@ export function NetworkViz(props: NetworkVizProps) { stroke={node.borderColor} transform={`translate(${node.x}, ${node.y}) scale(1)`} css={ - node.color === "#E2E2E2" + node.color === appColors.COMMON.SELECTED_ITEM_VALUE_COLOR ? `fill: url(#diagonalHatch);` : `fill: ${node.color};` } diff --git a/src/app/components/Charts/common/breadcrumbs/index.tsx b/src/app/components/Charts/common/breadcrumbs/index.tsx index 1d5323e96..94879c60c 100644 --- a/src/app/components/Charts/common/breadcrumbs/index.tsx +++ b/src/app/components/Charts/common/breadcrumbs/index.tsx @@ -3,6 +3,7 @@ import { useRecoilState } from "recoil"; import { useHistory } from "react-router-dom"; import RightIcon from "@material-ui/icons/ChevronRight"; import { breadCrumbItems } from "app/state/recoil/atoms"; +import { appColors } from "app/theme"; export default function BreadCrumbs() { const history = useHistory(); @@ -65,14 +66,15 @@ export default function BreadCrumbs() {