From 236be2ab753aacdb1435cb59dd09cb76096d43ab Mon Sep 17 00:00:00 2001 From: Tero Tikkanen Date: Sun, 13 Oct 2024 19:54:38 +0300 Subject: [PATCH] Handle refetch on mutations --- components/common/SelectDropdown.tsx | 13 +- components/paths/ActionParameters.tsx | 1 - components/paths/CategoryCard.tsx | 26 ++-- components/paths/ParameterWidget.tsx | 2 +- components/paths/ScenarioSelector.tsx | 4 +- .../contentblocks/CategoryTypeListBlock.tsx | 3 +- .../paths/contentblocks/PathsOutcomeBlock.tsx | 139 ++++++++++-------- .../paths/graphs/DimensionalNodePlot.tsx | 23 +-- .../paths/outcome/OutcomeNodeContent.tsx | 3 - utils/paths/metric.ts | 11 +- 10 files changed, 124 insertions(+), 101 deletions(-) diff --git a/components/common/SelectDropdown.tsx b/components/common/SelectDropdown.tsx index d7376078d..c85b78184 100644 --- a/components/common/SelectDropdown.tsx +++ b/components/common/SelectDropdown.tsx @@ -1,16 +1,17 @@ import React, { useEffect, useState } from 'react'; + +import PopoverTip from 'components/common/PopoverTip'; +import Highlighter from 'react-highlight-words'; import Select, { components, DropdownIndicatorProps, MultiValueProps, + OptionProps, Theme as SelectTheme, ValueContainerProps, - OptionProps, } from 'react-select'; -import styled, { DefaultTheme, useTheme } from 'styled-components'; -import Highlighter from 'react-highlight-words'; import { FormGroup, Label as BSLabel } from 'reactstrap'; -import PopoverTip from 'components/common/PopoverTip'; +import styled, { DefaultTheme, useTheme } from 'styled-components'; const Label = styled(BSLabel)` font-weight: ${(props) => props.theme.formLabelFontWeight}; @@ -262,7 +263,7 @@ type SelectDropdownProps