feat: main Added ability to render identical keys using key content hack
This commit is contained in:
parent
ae6be981bb
commit
64396604ed
@ -197,6 +197,10 @@ export const Thingtime = props => {
|
||||
if (props?.path?.human?.includes?.('hidden')) {
|
||||
return null
|
||||
}
|
||||
if (props?.path?.human?.includes?.('unique')) {
|
||||
// take only path from before the string unique
|
||||
return props?.path?.human?.split?.('unique')?.[0]
|
||||
}
|
||||
return (
|
||||
<Flex maxW='100%' pl={pl} wordBreak={'break-all'} fontSize='12px'>
|
||||
{props?.path?.human}
|
||||
|
@ -31,7 +31,10 @@ export const ThingtimeDemo = props => {
|
||||
{
|
||||
name: 'three'
|
||||
}
|
||||
]
|
||||
],
|
||||
'...unique1': "I'm unique",
|
||||
'...unique2': "I'm unique",
|
||||
'...unique3': "I'm unique"
|
||||
}
|
||||
|
||||
const [demoThing, setDemoThing] = React.useState(thing)
|
||||
|
Loading…
Reference in New Issue
Block a user