From 1379dd25a798afbb1a98f489c0267cbce3b57036 Mon Sep 17 00:00:00 2001 From: Nathan Bierema Date: Mon, 2 Jan 2023 11:11:00 -0500 Subject: [PATCH] Update redux-devtools-chart-monitor --- packages/redux-devtools-chart-monitor/src/Chart.tsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/packages/redux-devtools-chart-monitor/src/Chart.tsx b/packages/redux-devtools-chart-monitor/src/Chart.tsx index aa75a733..895fc5f2 100644 --- a/packages/redux-devtools-chart-monitor/src/Chart.tsx +++ b/packages/redux-devtools-chart-monitor/src/Chart.tsx @@ -1,6 +1,7 @@ import React, { Component, createRef } from 'react'; import PropTypes from 'prop-types'; -import { tree, NodeWithId, Primitive } from 'd3-state-visualizer'; +import { tree } from 'd3-state-visualizer'; +import type { Node, StyleValue } from 'd3-state-visualizer'; import { Action, Dispatch } from 'redux'; import { LiftedAction, LiftedState } from '@redux-devtools/core'; import * as themes from 'redux-devtools-themes'; @@ -23,7 +24,7 @@ export interface Props> isSorted: boolean; heightBetweenNodesCoeff: number; widthBetweenNodesCoeff: number; - onClickText: (datum: NodeWithId) => void; + onClickText: (datum: Node) => void; tooltipOptions: { disabled: boolean; offset: { @@ -31,9 +32,9 @@ export interface Props> top: number; }; indentationSize: number; - style: { [key: string]: Primitive } | undefined; + styles: { [key: string]: StyleValue } | undefined; }; - style: { [key: string]: Primitive } | undefined; + chartStyles: { [key: string]: StyleValue } | undefined; defaultIsVisible?: boolean; }