mirror of
https://github.com/usebruno/bruno.git
synced 2024-12-23 23:29:47 +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}}>
|
||||
{item.items && item.items.length ? (
|
||||
{item.type === 'folder' ? (
|
||||
<IconChevronRight size={16} strokeWidth={2} className={iconClassName} style={{color: 'rgb(160 160 160)'}}/>
|
||||
) : null}
|
||||
</div>
|
||||
|
@ -122,6 +122,7 @@ const reducer = (state, action) => {
|
||||
collection.items.push({
|
||||
uid: nanoid(),
|
||||
name: action.folderName,
|
||||
type: 'folder',
|
||||
items: [],
|
||||
// todo: this will be autoassigned
|
||||
depth: 1
|
||||
|
Loading…
Reference in New Issue
Block a user