mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-07-22 22:19:48 +03:00
add isExpanded as argument to getItemString method
This commit is contained in:
parent
63b691a264
commit
becb83393f
|
@ -176,7 +176,8 @@ export default function JSONNestedNode(props: Props) {
|
||||||
data,
|
data,
|
||||||
itemType,
|
itemType,
|
||||||
createItemString(data, collectionLimit),
|
createItemString(data, collectionLimit),
|
||||||
keyPath
|
keyPath,
|
||||||
|
expandedRef.current,
|
||||||
);
|
);
|
||||||
const stylingArgs = [
|
const stylingArgs = [
|
||||||
keyPath,
|
keyPath,
|
||||||
|
|
|
@ -10,7 +10,8 @@ export type GetItemString = (
|
||||||
data: unknown,
|
data: unknown,
|
||||||
itemType: React.ReactNode,
|
itemType: React.ReactNode,
|
||||||
itemString: string,
|
itemString: string,
|
||||||
keyPath: KeyPath
|
keyPath: KeyPath,
|
||||||
|
isExpanded: boolean,
|
||||||
) => React.ReactNode;
|
) => React.ReactNode;
|
||||||
|
|
||||||
export type LabelRenderer = (
|
export type LabelRenderer = (
|
||||||
|
|
Loading…
Reference in New Issue
Block a user