mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-07-27 00:19:55 +03:00
stash
This commit is contained in:
parent
bb87b3e2f2
commit
a559bd9d8f
|
@ -1 +1,2 @@
|
||||||
export { default as tree } from './tree/tree';
|
export { default as tree } from './tree/tree';
|
||||||
|
export type { NodeWithId } from './tree/tree';
|
||||||
|
|
|
@ -34,7 +34,7 @@ interface InputOptions {
|
||||||
widthBetweenNodesCoeff: number;
|
widthBetweenNodesCoeff: number;
|
||||||
transitionDuration: number;
|
transitionDuration: number;
|
||||||
blinkDuration: number;
|
blinkDuration: number;
|
||||||
onClickText: () => void;
|
onClickText: (datum: NodeWithId) => void;
|
||||||
tooltipOptions: {
|
tooltipOptions: {
|
||||||
disabled?: boolean;
|
disabled?: boolean;
|
||||||
left?: number | undefined;
|
left?: number | undefined;
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
import * as charts from './charts';
|
import * as charts from './charts';
|
||||||
|
|
||||||
export { tree } from './charts';
|
export { tree } from './charts';
|
||||||
|
export type { NodeWithId } from './charts';
|
||||||
|
|
||||||
export default charts;
|
export default charts;
|
||||||
|
|
|
@ -1 +1,2 @@
|
||||||
export { default } from './Tabs';
|
export { default } from './Tabs';
|
||||||
|
export { Tab } from './TabsHeader';
|
||||||
|
|
|
@ -6,7 +6,7 @@ export { default as Editor } from './Editor';
|
||||||
export { default as Form } from './Form';
|
export { default as Form } from './Form';
|
||||||
export { default as Select } from './Select';
|
export { default as Select } from './Select';
|
||||||
export { default as Slider } from './Slider';
|
export { default as Slider } from './Slider';
|
||||||
export { default as Tabs } from './Tabs';
|
export { default as Tabs, Tab } from './Tabs';
|
||||||
export { default as SegmentedControl } from './SegmentedControl';
|
export { default as SegmentedControl } from './SegmentedControl';
|
||||||
export { default as Notification } from './Notification';
|
export { default as Notification } from './Notification';
|
||||||
export * from './Toolbar';
|
export * from './Toolbar';
|
||||||
|
@ -14,4 +14,4 @@ export * from './Toolbar';
|
||||||
import color from './utils/color';
|
import color from './utils/color';
|
||||||
export const effects = { color };
|
export const effects = { color };
|
||||||
export { default as createStyledComponent } from './utils/createStyledComponent';
|
export { default as createStyledComponent } from './utils/createStyledComponent';
|
||||||
export { Theme, Scheme } from './utils/theme';
|
export { Theme, ThemeFromProvider, Scheme } from './utils/theme';
|
||||||
|
|
|
@ -7,6 +7,7 @@ import * as themes from 'redux-devtools-themes';
|
||||||
import { Base16Theme } from 'react-base16-styling';
|
import { Base16Theme } from 'react-base16-styling';
|
||||||
import { ChartMonitorState } from './reducers';
|
import { ChartMonitorState } from './reducers';
|
||||||
import { Primitive } from 'd3';
|
import { Primitive } from 'd3';
|
||||||
|
import { NodeWithId } from 'd3-state-visualizer/lib/charts/tree/tree';
|
||||||
|
|
||||||
const wrapperStyle = {
|
const wrapperStyle = {
|
||||||
width: '100%',
|
width: '100%',
|
||||||
|
@ -25,6 +26,7 @@ export interface Props<S, A extends Action<unknown>>
|
||||||
isSorted: boolean;
|
isSorted: boolean;
|
||||||
heightBetweenNodesCoeff: number;
|
heightBetweenNodesCoeff: number;
|
||||||
widthBetweenNodesCoeff: number;
|
widthBetweenNodesCoeff: number;
|
||||||
|
onClickText: (datum: NodeWithId) => void;
|
||||||
tooltipOptions: {
|
tooltipOptions: {
|
||||||
disabled: boolean;
|
disabled: boolean;
|
||||||
offset: {
|
offset: {
|
||||||
|
|
|
@ -9,6 +9,7 @@ import { Base16Theme } from 'react-base16-styling';
|
||||||
import reducer, { ChartMonitorState } from './reducers';
|
import reducer, { ChartMonitorState } from './reducers';
|
||||||
import Chart, { Props } from './Chart';
|
import Chart, { Props } from './Chart';
|
||||||
import { Primitive } from 'd3';
|
import { Primitive } from 'd3';
|
||||||
|
import { NodeWithId } from 'd3-state-visualizer/lib/charts/tree/tree';
|
||||||
// eslint-disable-next-line @typescript-eslint/unbound-method
|
// eslint-disable-next-line @typescript-eslint/unbound-method
|
||||||
const { reset, rollback, commit, sweep, toggleAction } = ActionCreators;
|
const { reset, rollback, commit, sweep, toggleAction } = ActionCreators;
|
||||||
|
|
||||||
|
@ -49,6 +50,7 @@ export interface ChartMonitorProps<S, A extends Action<unknown>>
|
||||||
isSorted: boolean;
|
isSorted: boolean;
|
||||||
heightBetweenNodesCoeff: number;
|
heightBetweenNodesCoeff: number;
|
||||||
widthBetweenNodesCoeff: number;
|
widthBetweenNodesCoeff: number;
|
||||||
|
onClickText: (datum: NodeWithId) => void;
|
||||||
tooltipOptions: unknown;
|
tooltipOptions: unknown;
|
||||||
style: {
|
style: {
|
||||||
width: number;
|
width: number;
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
import React, { Component } from 'react';
|
import React, { Component } from 'react';
|
||||||
import PropTypes from 'prop-types';
|
|
||||||
import { connect, ResolveThunks } from 'react-redux';
|
import { connect, ResolveThunks } from 'react-redux';
|
||||||
import ChartMonitor from 'redux-devtools-chart-monitor';
|
import ChartMonitor from 'redux-devtools-chart-monitor';
|
||||||
|
import { NodeWithId } from 'd3-state-visualizer';
|
||||||
import { selectMonitorWithState } from '../../actions';
|
import { selectMonitorWithState } from '../../actions';
|
||||||
|
|
||||||
export function getPath(obj, inspectedStatePath) {
|
export function getPath(obj: NodeWithId, inspectedStatePath: string[]) {
|
||||||
const parent = obj.parent;
|
const parent = obj.parent;
|
||||||
if (!parent) return;
|
if (!parent) return;
|
||||||
getPath(parent, inspectedStatePath);
|
getPath(parent, inspectedStatePath);
|
||||||
|
@ -20,8 +20,8 @@ type Props = DispatchProps;
|
||||||
class ChartMonitorWrapper extends Component<Props> {
|
class ChartMonitorWrapper extends Component<Props> {
|
||||||
static update = ChartMonitor.update;
|
static update = ChartMonitor.update;
|
||||||
|
|
||||||
onClickText = (data) => {
|
onClickText = (data: NodeWithId) => {
|
||||||
const inspectedStatePath = [];
|
const inspectedStatePath: string[] = [];
|
||||||
getPath(data, inspectedStatePath);
|
getPath(data, inspectedStatePath);
|
||||||
this.props.selectMonitorWithState('InspectorMonitor', {
|
this.props.selectMonitorWithState('InspectorMonitor', {
|
||||||
inspectedStatePath,
|
inspectedStatePath,
|
||||||
|
@ -45,10 +45,6 @@ class ChartMonitorWrapper extends Component<Props> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ChartMonitorWrapper.propTypes = {
|
|
||||||
selectMonitorWithState: PropTypes.func.isRequired,
|
|
||||||
};
|
|
||||||
|
|
||||||
const actionCreators = {
|
const actionCreators = {
|
||||||
selectMonitorWithState: selectMonitorWithState,
|
selectMonitorWithState: selectMonitorWithState,
|
||||||
};
|
};
|
||||||
|
|
|
@ -2,21 +2,27 @@ import React, { Component } from 'react';
|
||||||
import { Editor } from 'devui';
|
import { Editor } from 'devui';
|
||||||
import { stringify } from 'javascript-stringify';
|
import { stringify } from 'javascript-stringify';
|
||||||
|
|
||||||
export default class RawTab extends Component {
|
interface Props {
|
||||||
constructor(props) {
|
data: unknown;
|
||||||
|
}
|
||||||
|
|
||||||
|
export default class RawTab extends Component<Props> {
|
||||||
|
value?: string | undefined;
|
||||||
|
|
||||||
|
constructor(props: Props) {
|
||||||
super(props);
|
super(props);
|
||||||
this.stringifyData(props);
|
this.stringifyData(props);
|
||||||
}
|
}
|
||||||
|
|
||||||
shouldComponentUpdate(nextProps) {
|
shouldComponentUpdate(nextProps: Props) {
|
||||||
return nextProps.data !== this.value;
|
return nextProps.data !== this.value;
|
||||||
}
|
}
|
||||||
|
|
||||||
UNSAFE_componentWillUpdate(nextProps) {
|
UNSAFE_componentWillUpdate(nextProps: Props) {
|
||||||
this.stringifyData(nextProps);
|
this.stringifyData(nextProps);
|
||||||
}
|
}
|
||||||
|
|
||||||
stringifyData(props) {
|
stringifyData(props: Props) {
|
||||||
this.value = stringify(props.data, null, 2);
|
this.value = stringify(props.data, null, 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,9 @@
|
||||||
import React, { Component } from 'react';
|
import React, { Component } from 'react';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import { connect, ResolveThunks } from 'react-redux';
|
import { connect, ResolveThunks } from 'react-redux';
|
||||||
import { Tabs } from 'devui';
|
import { Tab, Tabs } from 'devui';
|
||||||
|
import { TabComponentProps } from 'redux-devtools-inspector-monitor';
|
||||||
|
import { Action } from 'redux';
|
||||||
import StateTree from 'redux-devtools-inspector-monitor/lib/tabs/StateTab';
|
import StateTree from 'redux-devtools-inspector-monitor/lib/tabs/StateTab';
|
||||||
import ActionTree from 'redux-devtools-inspector-monitor/lib/tabs/ActionTab';
|
import ActionTree from 'redux-devtools-inspector-monitor/lib/tabs/ActionTab';
|
||||||
import DiffTree from 'redux-devtools-inspector-monitor/lib/tabs/DiffTab';
|
import DiffTree from 'redux-devtools-inspector-monitor/lib/tabs/DiffTab';
|
||||||
|
@ -13,9 +15,13 @@ import { StoreState } from '../../../reducers';
|
||||||
|
|
||||||
type StateProps = ReturnType<typeof mapStateToProps>;
|
type StateProps = ReturnType<typeof mapStateToProps>;
|
||||||
type DispatchProps = ResolveThunks<typeof actionCreators>;
|
type DispatchProps = ResolveThunks<typeof actionCreators>;
|
||||||
type Props = StateProps & DispatchProps;
|
type Props = StateProps &
|
||||||
|
DispatchProps &
|
||||||
|
TabComponentProps<unknown, Action<unknown>>;
|
||||||
|
|
||||||
class SubTabs extends Component<Props> {
|
class SubTabs extends Component<Props> {
|
||||||
|
tabs?: Tab<unknown>[];
|
||||||
|
|
||||||
constructor(props: Props) {
|
constructor(props: Props) {
|
||||||
super(props);
|
super(props);
|
||||||
this.updateTabs(props);
|
this.updateTabs(props);
|
||||||
|
@ -83,7 +89,7 @@ class SubTabs extends Component<Props> {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Tabs
|
<Tabs
|
||||||
tabs={this.tabs}
|
tabs={this.tabs!}
|
||||||
selected={selected || 'Tree'}
|
selected={selected || 'Tree'}
|
||||||
onClick={this.props.selectMonitorTab}
|
onClick={this.props.selectMonitorTab}
|
||||||
/>
|
/>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import React, { Component } from 'react';
|
import React, { Component } from 'react';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import { formatters } from 'jsondiffpatch';
|
import { Delta, formatters } from 'jsondiffpatch';
|
||||||
import styled from 'styled-components';
|
import styled from 'styled-components';
|
||||||
import { effects } from 'devui';
|
import { effects } from 'devui';
|
||||||
|
|
||||||
|
@ -218,22 +218,22 @@ export const StyledContainer = styled.div`
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
export default class VisualDiffTab extends Component {
|
interface Props {
|
||||||
shouldComponentUpdate(nextProps) {
|
data?: Delta;
|
||||||
|
}
|
||||||
|
|
||||||
|
export default class VisualDiffTab extends Component<Props> {
|
||||||
|
shouldComponentUpdate(nextProps: Props) {
|
||||||
return this.props.data !== nextProps.data;
|
return this.props.data !== nextProps.data;
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
let __html;
|
let __html: string | undefined;
|
||||||
const data = this.props.data;
|
const data = this.props.data;
|
||||||
if (data) {
|
if (data) {
|
||||||
__html = formatters.html.format(data);
|
__html = formatters.html.format(data, undefined);
|
||||||
}
|
}
|
||||||
|
|
||||||
return <StyledContainer dangerouslySetInnerHTML={{ __html }} />;
|
return <StyledContainer dangerouslySetInnerHTML={{ __html: __html! }} />;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
VisualDiffTab.propTypes = {
|
|
||||||
data: PropTypes.object,
|
|
||||||
};
|
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
import React, { Component } from 'react';
|
import React, { Component } from 'react';
|
||||||
import PropTypes from 'prop-types';
|
import InspectorMonitor, { Tab } from 'redux-devtools-inspector-monitor';
|
||||||
import InspectorMonitor from 'redux-devtools-inspector-monitor';
|
|
||||||
import TraceTab from 'redux-devtools-inspector-monitor-trace-tab';
|
import TraceTab from 'redux-devtools-inspector-monitor-trace-tab';
|
||||||
import TestTab from 'redux-devtools-inspector-monitor-test-tab';
|
import TestTab from 'redux-devtools-inspector-monitor-test-tab';
|
||||||
import { DATA_TYPE_KEY } from '../../../constants/dataTypes';
|
import { DATA_TYPE_KEY } from '../../../constants/dataTypes';
|
||||||
import SubTabs from './SubTabs';
|
import SubTabs from './SubTabs';
|
||||||
|
import { Action } from 'redux';
|
||||||
|
|
||||||
const DEFAULT_TABS = [
|
const DEFAULT_TABS = [
|
||||||
{
|
{
|
||||||
|
@ -25,25 +25,38 @@ const DEFAULT_TABS = [
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
class InspectorWrapper extends Component {
|
interface Features {
|
||||||
|
test?: boolean;
|
||||||
|
skip?: boolean;
|
||||||
|
}
|
||||||
|
interface Props {
|
||||||
|
features?: Features;
|
||||||
|
}
|
||||||
|
|
||||||
|
class InspectorWrapper extends Component<Props> {
|
||||||
static update = InspectorMonitor.update;
|
static update = InspectorMonitor.update;
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const { features, ...rest } = this.props;
|
const { features, ...rest } = this.props;
|
||||||
let tabs;
|
let tabs: () => Tab<unknown, Action<unknown>>[];
|
||||||
if (features && features.test) {
|
if (features && features.test) {
|
||||||
tabs = () => [...DEFAULT_TABS, { name: 'Test', component: TestTab }];
|
tabs = () => [
|
||||||
|
...(DEFAULT_TABS as Tab<unknown, Action<unknown>>[]),
|
||||||
|
({ name: 'Test', component: TestTab } as unknown) as Tab<
|
||||||
|
unknown,
|
||||||
|
Action<unknown>
|
||||||
|
>,
|
||||||
|
];
|
||||||
} else {
|
} else {
|
||||||
tabs = () => DEFAULT_TABS;
|
tabs = () => DEFAULT_TABS as Tab<unknown, Action<unknown>>[];
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<InspectorMonitor
|
<InspectorMonitor
|
||||||
dataTypeKey={DATA_TYPE_KEY}
|
dataTypeKey={DATA_TYPE_KEY}
|
||||||
shouldPersistState={false}
|
|
||||||
invertTheme={false}
|
invertTheme={false}
|
||||||
tabs={tabs}
|
tabs={tabs}
|
||||||
hideActionButtons={!features.skip}
|
hideActionButtons={!features!.skip}
|
||||||
hideMainButtons
|
hideMainButtons
|
||||||
{...rest}
|
{...rest}
|
||||||
/>
|
/>
|
||||||
|
@ -51,8 +64,4 @@ class InspectorWrapper extends Component {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
InspectorWrapper.propTypes = {
|
|
||||||
features: PropTypes.object,
|
|
||||||
};
|
|
||||||
|
|
||||||
export default InspectorWrapper;
|
export default InspectorWrapper;
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
import React, { Component } from 'react';
|
import React, { Component } from 'react';
|
||||||
import PropTypes from 'prop-types';
|
|
||||||
import styled, { withTheme } from 'styled-components';
|
import styled, { withTheme } from 'styled-components';
|
||||||
import SliderMonitor from 'redux-devtools-slider-monitor';
|
import SliderMonitor from 'redux-devtools-slider-monitor';
|
||||||
import { LiftedAction, LiftedState } from 'redux-devtools-instrument';
|
import { LiftedAction, LiftedState } from 'redux-devtools-instrument';
|
||||||
import { Action, Dispatch } from 'redux';
|
import { Action, Dispatch } from 'redux';
|
||||||
|
import { ThemeFromProvider } from 'devui';
|
||||||
|
|
||||||
const SliderWrapper = styled.div`
|
const SliderWrapper = styled.div`
|
||||||
border-color: ${(props) => props.theme.base02};
|
border-color: ${(props) => props.theme.base02};
|
||||||
|
@ -14,7 +14,7 @@ const SliderWrapper = styled.div`
|
||||||
interface Props {
|
interface Props {
|
||||||
liftedState: LiftedState<unknown, Action<unknown>, unknown>;
|
liftedState: LiftedState<unknown, Action<unknown>, unknown>;
|
||||||
dispatch: Dispatch<LiftedAction<unknown, Action<unknown>, unknown>>;
|
dispatch: Dispatch<LiftedAction<unknown, Action<unknown>, unknown>>;
|
||||||
theme:
|
theme: ThemeFromProvider;
|
||||||
}
|
}
|
||||||
|
|
||||||
class Slider extends Component<Props> {
|
class Slider extends Component<Props> {
|
||||||
|
@ -38,10 +38,4 @@ class Slider extends Component<Props> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Slider.propTypes = {
|
|
||||||
liftedState: PropTypes.object,
|
|
||||||
dispatch: PropTypes.func.isRequired,
|
|
||||||
theme: PropTypes.object.isRequired,
|
|
||||||
};
|
|
||||||
|
|
||||||
export default withTheme(Slider);
|
export default withTheme(Slider);
|
||||||
|
|
|
@ -25,7 +25,7 @@ export interface TabComponentProps<S, A extends Action<unknown>> {
|
||||||
base16Theme: Base16Theme;
|
base16Theme: Base16Theme;
|
||||||
invertTheme: boolean;
|
invertTheme: boolean;
|
||||||
isWideLayout: boolean;
|
isWideLayout: boolean;
|
||||||
dataTypeKey: string | undefined;
|
dataTypeKey: string | symbol | undefined;
|
||||||
delta: Delta | null | undefined | false;
|
delta: Delta | null | undefined | false;
|
||||||
action: A;
|
action: A;
|
||||||
nextState: S;
|
nextState: S;
|
||||||
|
@ -67,7 +67,7 @@ interface Props<S, A extends Action<unknown>> {
|
||||||
actions: { [actionId: number]: PerformAction<A> };
|
actions: { [actionId: number]: PerformAction<A> };
|
||||||
selectedActionId: number | null;
|
selectedActionId: number | null;
|
||||||
startActionId: number | null;
|
startActionId: number | null;
|
||||||
dataTypeKey: string | undefined;
|
dataTypeKey: string | symbol | undefined;
|
||||||
monitorState: DevtoolsInspectorState;
|
monitorState: DevtoolsInspectorState;
|
||||||
updateMonitorState: (monitorState: Partial<DevtoolsInspectorState>) => void;
|
updateMonitorState: (monitorState: Partial<DevtoolsInspectorState>) => void;
|
||||||
styling: StylingFunction;
|
styling: StylingFunction;
|
||||||
|
|
|
@ -128,7 +128,7 @@ function createThemeState<S, A extends Action<unknown>>(
|
||||||
return { base16Theme, styling };
|
return { base16Theme, styling };
|
||||||
}
|
}
|
||||||
|
|
||||||
interface ExternalProps<S, A extends Action<unknown>> {
|
export interface ExternalProps<S, A extends Action<unknown>> {
|
||||||
dispatch: Dispatch<
|
dispatch: Dispatch<
|
||||||
DevtoolsInspectorAction | LiftedAction<S, A, DevtoolsInspectorState>
|
DevtoolsInspectorAction | LiftedAction<S, A, DevtoolsInspectorState>
|
||||||
>;
|
>;
|
||||||
|
@ -142,7 +142,7 @@ interface ExternalProps<S, A extends Action<unknown>> {
|
||||||
hideMainButtons?: boolean;
|
hideMainButtons?: boolean;
|
||||||
hideActionButtons?: boolean;
|
hideActionButtons?: boolean;
|
||||||
invertTheme: boolean;
|
invertTheme: boolean;
|
||||||
dataTypeKey?: string;
|
dataTypeKey?: string | symbol;
|
||||||
tabs: Tab<S, A>[] | ((tabs: Tab<S, A>[]) => Tab<S, A>[]);
|
tabs: Tab<S, A>[] | ((tabs: Tab<S, A>[]) => Tab<S, A>[]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -169,7 +169,7 @@ export interface DevtoolsInspectorProps<S, A extends Action<unknown>>
|
||||||
hideMainButtons?: boolean;
|
hideMainButtons?: boolean;
|
||||||
hideActionButtons?: boolean;
|
hideActionButtons?: boolean;
|
||||||
invertTheme: boolean;
|
invertTheme: boolean;
|
||||||
dataTypeKey?: string;
|
dataTypeKey?: string | symbol;
|
||||||
tabs: Tab<S, A>[] | ((tabs: Tab<S, A>[]) => Tab<S, A>[]);
|
tabs: Tab<S, A>[] | ((tabs: Tab<S, A>[]) => Tab<S, A>[]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ import { DevtoolsInspectorProps } from './DevtoolsInspector';
|
||||||
const UPDATE_MONITOR_STATE =
|
const UPDATE_MONITOR_STATE =
|
||||||
'@@redux-devtools-inspector-monitor/UPDATE_MONITOR_STATE';
|
'@@redux-devtools-inspector-monitor/UPDATE_MONITOR_STATE';
|
||||||
|
|
||||||
interface UpdateMonitorStateAction {
|
export interface UpdateMonitorStateAction {
|
||||||
type: typeof UPDATE_MONITOR_STATE;
|
type: typeof UPDATE_MONITOR_STATE;
|
||||||
monitorState: Partial<DevtoolsInspectorState>;
|
monitorState: Partial<DevtoolsInspectorState>;
|
||||||
}
|
}
|
||||||
|
|
|
@ -60,7 +60,7 @@ interface Props {
|
||||||
expandable: boolean
|
expandable: boolean
|
||||||
) => React.ReactNode;
|
) => React.ReactNode;
|
||||||
isWideLayout: boolean;
|
isWideLayout: boolean;
|
||||||
dataTypeKey: string | undefined;
|
dataTypeKey: string | symbol | undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface State {
|
interface State {
|
||||||
|
|
|
@ -73,7 +73,7 @@ const getItemString = (
|
||||||
styling: StylingFunction,
|
styling: StylingFunction,
|
||||||
type: string,
|
type: string,
|
||||||
data: any,
|
data: any,
|
||||||
dataTypeKey: string | undefined,
|
dataTypeKey: string | symbol | undefined,
|
||||||
isWideLayout: boolean,
|
isWideLayout: boolean,
|
||||||
isDiff?: boolean
|
isDiff?: boolean
|
||||||
) => (
|
) => (
|
||||||
|
|
Loading…
Reference in New Issue
Block a user