mirror of
https://github.com/usebruno/bruno.git
synced 2025-01-11 16:38:19 +01:00
chore: show caret for empty folders
This commit is contained in:
parent
dfa68561f6
commit
bd621196ba
@ -86,7 +86,7 @@ const CollectionItem = ({item, collectionUid}) => {
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<div style={{width:16}}>
|
<div style={{width:16}}>
|
||||||
{item.items && item.items.length ? (
|
{item.type === 'folder' ? (
|
||||||
<IconChevronRight size={16} strokeWidth={2} className={iconClassName} style={{color: 'rgb(160 160 160)'}}/>
|
<IconChevronRight size={16} strokeWidth={2} className={iconClassName} style={{color: 'rgb(160 160 160)'}}/>
|
||||||
) : null}
|
) : null}
|
||||||
</div>
|
</div>
|
||||||
|
@ -122,6 +122,7 @@ const reducer = (state, action) => {
|
|||||||
collection.items.push({
|
collection.items.push({
|
||||||
uid: nanoid(),
|
uid: nanoid(),
|
||||||
name: action.folderName,
|
name: action.folderName,
|
||||||
|
type: 'folder',
|
||||||
items: [],
|
items: [],
|
||||||
// todo: this will be autoassigned
|
// todo: this will be autoassigned
|
||||||
depth: 1
|
depth: 1
|
||||||
|
Loading…
Reference in New Issue
Block a user