mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-07-27 00:19:55 +03:00
Remove styling prop
This commit is contained in:
parent
a07b829b50
commit
f4149ee35b
|
@ -1,7 +1,6 @@
|
||||||
import React, { ReactNode, useCallback, useLayoutEffect, useRef } from 'react';
|
import React, { ReactNode, useCallback, useLayoutEffect, useRef } from 'react';
|
||||||
import { Action } from 'redux';
|
import { Action } from 'redux';
|
||||||
import { PerformAction } from '@redux-devtools/core';
|
import { PerformAction } from '@redux-devtools/core';
|
||||||
import { StylingFunction } from 'react-base16-styling';
|
|
||||||
import {
|
import {
|
||||||
closestCenter,
|
closestCenter,
|
||||||
DndContext,
|
DndContext,
|
||||||
|
@ -56,7 +55,6 @@ interface Props<A extends Action<string>> {
|
||||||
draggableActions: boolean;
|
draggableActions: boolean;
|
||||||
hideMainButtons: boolean | undefined;
|
hideMainButtons: boolean | undefined;
|
||||||
hideActionButtons: boolean | undefined;
|
hideActionButtons: boolean | undefined;
|
||||||
styling: StylingFunction;
|
|
||||||
onSearch: (value: string) => void;
|
onSearch: (value: string) => void;
|
||||||
onSelect: (e: React.MouseEvent<HTMLDivElement>, actionId: number) => void;
|
onSelect: (e: React.MouseEvent<HTMLDivElement>, actionId: number) => void;
|
||||||
onToggleAction: (actionId: number) => void;
|
onToggleAction: (actionId: number) => void;
|
||||||
|
@ -69,7 +67,6 @@ interface Props<A extends Action<string>> {
|
||||||
}
|
}
|
||||||
|
|
||||||
export default function ActionList<A extends Action<string>>({
|
export default function ActionList<A extends Action<string>>({
|
||||||
styling,
|
|
||||||
actions,
|
actions,
|
||||||
actionIds,
|
actionIds,
|
||||||
isWideLayout,
|
isWideLayout,
|
||||||
|
@ -158,7 +155,6 @@ export default function ActionList<A extends Action<string>>({
|
||||||
css={[actionListCss, isWideLayout && actionListWideCss]}
|
css={[actionListCss, isWideLayout && actionListWideCss]}
|
||||||
>
|
>
|
||||||
<ActionListHeader
|
<ActionListHeader
|
||||||
styling={styling}
|
|
||||||
onSearch={onSearch}
|
onSearch={onSearch}
|
||||||
onCommit={onCommit}
|
onCommit={onCommit}
|
||||||
onSweep={onSweep}
|
onSweep={onSweep}
|
||||||
|
@ -185,7 +181,6 @@ export default function ActionList<A extends Action<string>>({
|
||||||
{filteredActionIds.map((actionId) => (
|
{filteredActionIds.map((actionId) => (
|
||||||
<SortableItem key={actionId} actionId={actionId}>
|
<SortableItem key={actionId} actionId={actionId}>
|
||||||
<ActionListRow
|
<ActionListRow
|
||||||
styling={styling}
|
|
||||||
actionId={actionId}
|
actionId={actionId}
|
||||||
isInitAction={!actionId}
|
isInitAction={!actionId}
|
||||||
isSelected={
|
isSelected={
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import React, { FunctionComponent } from 'react';
|
import React, { FunctionComponent } from 'react';
|
||||||
import { StylingFunction } from 'react-base16-styling';
|
|
||||||
import RightSlider from './RightSlider';
|
import RightSlider from './RightSlider';
|
||||||
import {
|
import {
|
||||||
actionListHeaderCss,
|
actionListHeaderCss,
|
||||||
|
@ -16,7 +15,6 @@ const getActiveButtons = (hasSkippedActions: boolean): ('Sweep' | 'Commit')[] =>
|
||||||
);
|
);
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
styling: StylingFunction;
|
|
||||||
onSearch: (value: string) => void;
|
onSearch: (value: string) => void;
|
||||||
onCommit: () => void;
|
onCommit: () => void;
|
||||||
onSweep: () => void;
|
onSweep: () => void;
|
||||||
|
@ -27,7 +25,6 @@ interface Props {
|
||||||
}
|
}
|
||||||
|
|
||||||
const ActionListHeader: FunctionComponent<Props> = ({
|
const ActionListHeader: FunctionComponent<Props> = ({
|
||||||
styling,
|
|
||||||
onSearch,
|
onSearch,
|
||||||
hasSkippedActions,
|
hasSkippedActions,
|
||||||
hasStagedActions,
|
hasStagedActions,
|
||||||
|
@ -45,7 +42,7 @@ const ActionListHeader: FunctionComponent<Props> = ({
|
||||||
/>
|
/>
|
||||||
{!hideMainButtons && (
|
{!hideMainButtons && (
|
||||||
<div css={actionListHeaderWrapperCss}>
|
<div css={actionListHeaderWrapperCss}>
|
||||||
<RightSlider shown={hasStagedActions} styling={styling}>
|
<RightSlider shown={hasStagedActions}>
|
||||||
<div css={actionListHeaderSelectorCss}>
|
<div css={actionListHeaderSelectorCss}>
|
||||||
{getActiveButtons(hasSkippedActions).map((btn) => (
|
{getActiveButtons(hasSkippedActions).map((btn) => (
|
||||||
<div
|
<div
|
||||||
|
|
|
@ -2,7 +2,6 @@ import React, { MouseEvent, MouseEventHandler, PureComponent } from 'react';
|
||||||
import dateformat from 'dateformat';
|
import dateformat from 'dateformat';
|
||||||
import type { DebouncedFunc } from 'lodash';
|
import type { DebouncedFunc } from 'lodash';
|
||||||
import debounce from 'lodash.debounce';
|
import debounce from 'lodash.debounce';
|
||||||
import { StylingFunction } from 'react-base16-styling';
|
|
||||||
import { Action } from 'redux';
|
import { Action } from 'redux';
|
||||||
import RightSlider from './RightSlider';
|
import RightSlider from './RightSlider';
|
||||||
import {
|
import {
|
||||||
|
@ -26,7 +25,6 @@ const BUTTON_JUMP = 'Jump';
|
||||||
type Button = typeof BUTTON_SKIP | typeof BUTTON_JUMP;
|
type Button = typeof BUTTON_SKIP | typeof BUTTON_JUMP;
|
||||||
|
|
||||||
interface Props<A extends Action<string>> {
|
interface Props<A extends Action<string>> {
|
||||||
styling: StylingFunction;
|
|
||||||
actionId: number;
|
actionId: number;
|
||||||
isInitAction: boolean;
|
isInitAction: boolean;
|
||||||
isSelected: boolean;
|
isSelected: boolean;
|
||||||
|
@ -52,7 +50,6 @@ export default class ActionListRow<
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const {
|
const {
|
||||||
styling,
|
|
||||||
isSelected,
|
isSelected,
|
||||||
action,
|
action,
|
||||||
actionId,
|
actionId,
|
||||||
|
@ -104,7 +101,7 @@ export default class ActionListRow<
|
||||||
{actionType}
|
{actionType}
|
||||||
</div>
|
</div>
|
||||||
{hideActionButtons ? (
|
{hideActionButtons ? (
|
||||||
<RightSlider styling={styling} shown>
|
<RightSlider shown>
|
||||||
<div css={actionListItemTimeCss}>
|
<div css={actionListItemTimeCss}>
|
||||||
{timeDelta === 0
|
{timeDelta === 0
|
||||||
? '+00:00:00'
|
? '+00:00:00'
|
||||||
|
@ -116,7 +113,7 @@ export default class ActionListRow<
|
||||||
</RightSlider>
|
</RightSlider>
|
||||||
) : (
|
) : (
|
||||||
<div css={actionListItemButtonsCss}>
|
<div css={actionListItemButtonsCss}>
|
||||||
<RightSlider styling={styling} shown={!showButtons} rotate>
|
<RightSlider shown={!showButtons} rotate>
|
||||||
<div css={actionListItemTimeCss}>
|
<div css={actionListItemTimeCss}>
|
||||||
{timeDelta === 0
|
{timeDelta === 0
|
||||||
? '+00:00:00'
|
? '+00:00:00'
|
||||||
|
@ -126,7 +123,7 @@ export default class ActionListRow<
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
</RightSlider>
|
</RightSlider>
|
||||||
<RightSlider styling={styling} shown={showButtons} rotate>
|
<RightSlider shown={showButtons} rotate>
|
||||||
<div css={actionListItemSelectorCss}>
|
<div css={actionListItemSelectorCss}>
|
||||||
{([BUTTON_JUMP, BUTTON_SKIP] as const).map(
|
{([BUTTON_JUMP, BUTTON_SKIP] as const).map(
|
||||||
(btn) =>
|
(btn) =>
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
import React, { Component } from 'react';
|
import React, { Component } from 'react';
|
||||||
import { Base16Theme } from 'redux-devtools-themes';
|
import { Base16Theme } from 'redux-devtools-themes';
|
||||||
import { Action } from 'redux';
|
import { Action } from 'redux';
|
||||||
import type { StylingFunction } from 'react-base16-styling';
|
|
||||||
import type { LabelRenderer } from 'react-json-tree';
|
import type { LabelRenderer } from 'react-json-tree';
|
||||||
import { PerformAction } from '@redux-devtools/core';
|
import { PerformAction } from '@redux-devtools/core';
|
||||||
import { Delta } from 'jsondiffpatch';
|
import { Delta } from 'jsondiffpatch';
|
||||||
|
@ -19,7 +18,6 @@ import {
|
||||||
|
|
||||||
export interface TabComponentProps<S, A extends Action<string>> {
|
export interface TabComponentProps<S, A extends Action<string>> {
|
||||||
labelRenderer: LabelRenderer;
|
labelRenderer: LabelRenderer;
|
||||||
styling: StylingFunction;
|
|
||||||
computedStates: { state: S; error?: string }[];
|
computedStates: { state: S; error?: string }[];
|
||||||
actions: { [actionId: number]: PerformAction<A> };
|
actions: { [actionId: number]: PerformAction<A> };
|
||||||
selectedActionId: number | null;
|
selectedActionId: number | null;
|
||||||
|
@ -74,7 +72,6 @@ interface Props<S, A extends Action<string>> {
|
||||||
dataTypeKey: string | symbol | undefined;
|
dataTypeKey: string | symbol | undefined;
|
||||||
monitorState: DevtoolsInspectorState;
|
monitorState: DevtoolsInspectorState;
|
||||||
updateMonitorState: (monitorState: Partial<DevtoolsInspectorState>) => void;
|
updateMonitorState: (monitorState: Partial<DevtoolsInspectorState>) => void;
|
||||||
styling: StylingFunction;
|
|
||||||
onInspectPath: (path: (string | number)[]) => void;
|
onInspectPath: (path: (string | number)[]) => void;
|
||||||
inspectedPath: (string | number)[];
|
inspectedPath: (string | number)[];
|
||||||
onSelectTab: (tabName: string) => void;
|
onSelectTab: (tabName: string) => void;
|
||||||
|
@ -91,7 +88,6 @@ class ActionPreview<S, A extends Action<string>> extends Component<
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const {
|
const {
|
||||||
styling,
|
|
||||||
delta,
|
delta,
|
||||||
error,
|
error,
|
||||||
nextState,
|
nextState,
|
||||||
|
@ -130,14 +126,13 @@ class ActionPreview<S, A extends Action<string>> extends Component<
|
||||||
<div key="actionPreview" css={actionPreviewCss}>
|
<div key="actionPreview" css={actionPreviewCss}>
|
||||||
<ActionPreviewHeader
|
<ActionPreviewHeader
|
||||||
tabs={renderedTabs as unknown as Tab<unknown, Action<string>>[]}
|
tabs={renderedTabs as unknown as Tab<unknown, Action<string>>[]}
|
||||||
{...{ styling, inspectedPath, onInspectPath, tabName, onSelectTab }}
|
{...{ inspectedPath, onInspectPath, tabName, onSelectTab }}
|
||||||
/>
|
/>
|
||||||
{!error && (
|
{!error && (
|
||||||
<div key="actionPreviewContent" css={actionPreviewContentCss}>
|
<div key="actionPreviewContent" css={actionPreviewContentCss}>
|
||||||
<TabComponent
|
<TabComponent
|
||||||
labelRenderer={this.labelRenderer}
|
labelRenderer={this.labelRenderer}
|
||||||
{...{
|
{...{
|
||||||
styling,
|
|
||||||
computedStates,
|
computedStates,
|
||||||
actions,
|
actions,
|
||||||
selectedActionId,
|
selectedActionId,
|
||||||
|
@ -163,11 +158,11 @@ class ActionPreview<S, A extends Action<string>> extends Component<
|
||||||
}
|
}
|
||||||
|
|
||||||
labelRenderer: LabelRenderer = ([key, ...rest], nodeType, expanded) => {
|
labelRenderer: LabelRenderer = ([key, ...rest], nodeType, expanded) => {
|
||||||
const { styling, onInspectPath, inspectedPath } = this.props;
|
const { onInspectPath, inspectedPath } = this.props;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<span>
|
<span>
|
||||||
<span {...styling('treeItemKey')}>{key}</span>
|
<span>{key}</span>
|
||||||
<span
|
<span
|
||||||
css={treeItemPinCss}
|
css={treeItemPinCss}
|
||||||
onClick={() =>
|
onClick={() =>
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
import React, { FunctionComponent } from 'react';
|
import React, { FunctionComponent } from 'react';
|
||||||
import { Action } from 'redux';
|
import { Action } from 'redux';
|
||||||
import { StylingFunction } from 'react-base16-styling';
|
|
||||||
import { Tab } from './ActionPreview';
|
import { Tab } from './ActionPreview';
|
||||||
import {
|
import {
|
||||||
inspectedPathCss,
|
inspectedPathCss,
|
||||||
|
@ -14,7 +13,6 @@ import {
|
||||||
|
|
||||||
interface Props<S, A extends Action<string>> {
|
interface Props<S, A extends Action<string>> {
|
||||||
tabs: Tab<S, A>[];
|
tabs: Tab<S, A>[];
|
||||||
styling: StylingFunction;
|
|
||||||
inspectedPath: (string | number)[];
|
inspectedPath: (string | number)[];
|
||||||
onInspectPath: (path: (string | number)[]) => void;
|
onInspectPath: (path: (string | number)[]) => void;
|
||||||
tabName: string;
|
tabName: string;
|
||||||
|
@ -23,7 +21,7 @@ interface Props<S, A extends Action<string>> {
|
||||||
|
|
||||||
const ActionPreviewHeader: FunctionComponent<
|
const ActionPreviewHeader: FunctionComponent<
|
||||||
Props<unknown, Action<string>>
|
Props<unknown, Action<string>>
|
||||||
> = ({ styling, inspectedPath, onInspectPath, tabName, onSelectTab, tabs }) => (
|
> = ({ inspectedPath, onInspectPath, tabName, onSelectTab, tabs }) => (
|
||||||
<div key="previewHeader" css={previewHeaderCss}>
|
<div key="previewHeader" css={previewHeaderCss}>
|
||||||
<div css={tabSelectorCss}>
|
<div css={tabSelectorCss}>
|
||||||
{tabs.map((tab) => (
|
{tabs.map((tab) => (
|
||||||
|
|
|
@ -297,7 +297,7 @@ class DevtoolsInspector<S, A extends Action<string>> extends PureComponent<
|
||||||
tabName === 'Action' ? 'inspectedActionPath' : 'inspectedStatePath';
|
tabName === 'Action' ? 'inspectedActionPath' : 'inspectedStatePath';
|
||||||
const { themeState, isWideLayout, action, nextState, delta, error } =
|
const { themeState, isWideLayout, action, nextState, delta, error } =
|
||||||
this.state;
|
this.state;
|
||||||
const { base16Theme, styling } = themeState;
|
const { base16Theme } = themeState;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<ThemeProvider
|
<ThemeProvider
|
||||||
|
@ -321,7 +321,6 @@ class DevtoolsInspector<S, A extends Action<string>> extends PureComponent<
|
||||||
draggableActions,
|
draggableActions,
|
||||||
hideMainButtons,
|
hideMainButtons,
|
||||||
hideActionButtons,
|
hideActionButtons,
|
||||||
styling,
|
|
||||||
}}
|
}}
|
||||||
onSearch={this.handleSearch}
|
onSearch={this.handleSearch}
|
||||||
onSelect={this.handleSelectAction}
|
onSelect={this.handleSelectAction}
|
||||||
|
@ -354,7 +353,6 @@ class DevtoolsInspector<S, A extends Action<string>> extends PureComponent<
|
||||||
}}
|
}}
|
||||||
monitorState={this.props.monitorState}
|
monitorState={this.props.monitorState}
|
||||||
updateMonitorState={this.updateMonitorState}
|
updateMonitorState={this.updateMonitorState}
|
||||||
styling={styling}
|
|
||||||
onInspectPath={(path: (string | number)[]) =>
|
onInspectPath={(path: (string | number)[]) =>
|
||||||
this.handleInspectPath(inspectedPathType, path)
|
this.handleInspectPath(inspectedPathType, path)
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import React, { FunctionComponent } from 'react';
|
import React, { FunctionComponent } from 'react';
|
||||||
import { StylingFunction } from 'react-base16-styling';
|
|
||||||
import {
|
import {
|
||||||
rightSliderCss,
|
rightSliderCss,
|
||||||
rightSliderRotateCss,
|
rightSliderRotateCss,
|
||||||
|
@ -8,18 +7,12 @@ import {
|
||||||
} from './utils/createStylingFromTheme';
|
} from './utils/createStylingFromTheme';
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
styling: StylingFunction;
|
|
||||||
shown?: boolean;
|
shown?: boolean;
|
||||||
children: React.ReactNode;
|
children: React.ReactNode;
|
||||||
rotate?: boolean;
|
rotate?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
const RightSlider: FunctionComponent<Props> = ({
|
const RightSlider: FunctionComponent<Props> = ({ shown, children, rotate }) => (
|
||||||
styling,
|
|
||||||
shown,
|
|
||||||
children,
|
|
||||||
rotate,
|
|
||||||
}) => (
|
|
||||||
<div
|
<div
|
||||||
css={[
|
css={[
|
||||||
rightSliderCss,
|
rightSliderCss,
|
||||||
|
|
|
@ -9,7 +9,6 @@ const ActionTab: FunctionComponent<
|
||||||
TabComponentProps<unknown, Action<string>>
|
TabComponentProps<unknown, Action<string>>
|
||||||
> = ({
|
> = ({
|
||||||
action,
|
action,
|
||||||
styling,
|
|
||||||
base16Theme,
|
base16Theme,
|
||||||
invertTheme,
|
invertTheme,
|
||||||
labelRenderer,
|
labelRenderer,
|
||||||
|
@ -21,7 +20,7 @@ const ActionTab: FunctionComponent<
|
||||||
theme={getJsonTreeTheme(base16Theme)}
|
theme={getJsonTreeTheme(base16Theme)}
|
||||||
data={action}
|
data={action}
|
||||||
getItemString={(type, data) =>
|
getItemString={(type, data) =>
|
||||||
getItemString(styling, type, data, dataTypeKey, isWideLayout)
|
getItemString(type, data, dataTypeKey, isWideLayout)
|
||||||
}
|
}
|
||||||
invertTheme={invertTheme}
|
invertTheme={invertTheme}
|
||||||
hideRoot
|
hideRoot
|
||||||
|
|
|
@ -7,7 +7,6 @@ const DiffTab: FunctionComponent<
|
||||||
TabComponentProps<unknown, Action<string>>
|
TabComponentProps<unknown, Action<string>>
|
||||||
> = ({
|
> = ({
|
||||||
delta,
|
delta,
|
||||||
styling,
|
|
||||||
base16Theme,
|
base16Theme,
|
||||||
invertTheme,
|
invertTheme,
|
||||||
labelRenderer,
|
labelRenderer,
|
||||||
|
@ -17,7 +16,6 @@ const DiffTab: FunctionComponent<
|
||||||
<JSONDiff
|
<JSONDiff
|
||||||
{...{
|
{...{
|
||||||
delta,
|
delta,
|
||||||
styling,
|
|
||||||
base16Theme,
|
base16Theme,
|
||||||
invertTheme,
|
invertTheme,
|
||||||
labelRenderer,
|
labelRenderer,
|
||||||
|
|
|
@ -3,7 +3,6 @@ import { JSONTree } from 'react-json-tree';
|
||||||
import type { LabelRenderer, ShouldExpandNodeInitially } from 'react-json-tree';
|
import type { LabelRenderer, ShouldExpandNodeInitially } from 'react-json-tree';
|
||||||
import { stringify } from 'javascript-stringify';
|
import { stringify } from 'javascript-stringify';
|
||||||
import { Delta } from 'jsondiffpatch';
|
import { Delta } from 'jsondiffpatch';
|
||||||
import { StylingFunction } from 'react-base16-styling';
|
|
||||||
import { Base16Theme } from 'redux-devtools-themes';
|
import { Base16Theme } from 'redux-devtools-themes';
|
||||||
import getItemString from './getItemString';
|
import getItemString from './getItemString';
|
||||||
import getJsonTreeTheme from './getJsonTreeTheme';
|
import getJsonTreeTheme from './getJsonTreeTheme';
|
||||||
|
@ -58,7 +57,6 @@ function prepareDelta(value: any) {
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
delta: Delta | null | undefined | false;
|
delta: Delta | null | undefined | false;
|
||||||
styling: StylingFunction;
|
|
||||||
base16Theme: Base16Theme;
|
base16Theme: Base16Theme;
|
||||||
invertTheme: boolean;
|
invertTheme: boolean;
|
||||||
labelRenderer: LabelRenderer;
|
labelRenderer: LabelRenderer;
|
||||||
|
@ -92,7 +90,7 @@ export default class JSONDiff extends Component<Props, State> {
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const { styling, base16Theme, ...props } = this.props;
|
const { base16Theme, ...props } = this.props;
|
||||||
|
|
||||||
if (!this.state.data) {
|
if (!this.state.data) {
|
||||||
return <div css={stateDiffEmptyCss}>(states are equal)</div>;
|
return <div css={stateDiffEmptyCss}>(states are equal)</div>;
|
||||||
|
@ -115,7 +113,6 @@ export default class JSONDiff extends Component<Props, State> {
|
||||||
|
|
||||||
getItemString = (type: string, data: any) =>
|
getItemString = (type: string, data: any) =>
|
||||||
getItemString(
|
getItemString(
|
||||||
this.props.styling,
|
|
||||||
type,
|
type,
|
||||||
data,
|
data,
|
||||||
this.props.dataTypeKey,
|
this.props.dataTypeKey,
|
||||||
|
@ -124,7 +121,7 @@ export default class JSONDiff extends Component<Props, State> {
|
||||||
);
|
);
|
||||||
|
|
||||||
valueRenderer = (raw: any, value: any) => {
|
valueRenderer = (raw: any, value: any) => {
|
||||||
const { styling, isWideLayout } = this.props;
|
const { isWideLayout } = this.props;
|
||||||
|
|
||||||
if (Array.isArray(value)) {
|
if (Array.isArray(value)) {
|
||||||
switch (value.length) {
|
switch (value.length) {
|
||||||
|
|
|
@ -9,7 +9,6 @@ const StateTab: React.FunctionComponent<
|
||||||
TabComponentProps<any, Action<string>>
|
TabComponentProps<any, Action<string>>
|
||||||
> = ({
|
> = ({
|
||||||
nextState,
|
nextState,
|
||||||
styling,
|
|
||||||
base16Theme,
|
base16Theme,
|
||||||
invertTheme,
|
invertTheme,
|
||||||
labelRenderer,
|
labelRenderer,
|
||||||
|
@ -23,7 +22,7 @@ const StateTab: React.FunctionComponent<
|
||||||
theme={getJsonTreeTheme(base16Theme)}
|
theme={getJsonTreeTheme(base16Theme)}
|
||||||
data={nextState}
|
data={nextState}
|
||||||
getItemString={(type, data) =>
|
getItemString={(type, data) =>
|
||||||
getItemString(styling, type, data, dataTypeKey, isWideLayout)
|
getItemString(type, data, dataTypeKey, isWideLayout)
|
||||||
}
|
}
|
||||||
invertTheme={invertTheme}
|
invertTheme={invertTheme}
|
||||||
hideRoot
|
hideRoot
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { isCollection, isIndexed, isKeyed } from 'immutable';
|
import { isCollection, isIndexed, isKeyed } from 'immutable';
|
||||||
import { StylingFunction } from 'react-base16-styling';
|
|
||||||
import isIterable from '../utils/isIterable';
|
import isIterable from '../utils/isIterable';
|
||||||
import { treeItemHintCss } from '../utils/createStylingFromTheme';
|
import { treeItemHintCss } from '../utils/createStylingFromTheme';
|
||||||
|
|
||||||
|
@ -73,7 +72,6 @@ function getText(
|
||||||
}
|
}
|
||||||
|
|
||||||
const getItemString = (
|
const getItemString = (
|
||||||
styling: StylingFunction,
|
|
||||||
type: string,
|
type: string,
|
||||||
data: any,
|
data: any,
|
||||||
dataTypeKey: string | symbol | undefined,
|
dataTypeKey: string | symbol | undefined,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user