mirror of
https://github.com/usebruno/bruno.git
synced 2025-06-30 20:40:10 +02:00
chore: show caret for empty folders
This commit is contained in:
@ -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
|
||||||
|
Reference in New Issue
Block a user