Commit af6c9522 authored by Joel's avatar Joel

fix: no id hide op

parent b7b3084c
...@@ -95,14 +95,16 @@ const List: FC<IListProps> = ({ ...@@ -95,14 +95,16 @@ const List: FC<IListProps> = ({
<span>{item.name}</span> <span>{item.name}</span>
</div> </div>
<div className={cn(s.opBtn, 'shrink-0')} onClick={e => e.stopPropagation()}> {item.id !== '-1' && (
<ItemOperation <div className={cn(s.opBtn, 'shrink-0')} onClick={e => e.stopPropagation()}>
isPinned={isPinned} <ItemOperation
togglePin={() => onPinChanged(item.id)} isPinned={isPinned}
isShowDelete togglePin={() => onPinChanged(item.id)}
onDelete={() => onDelete(item.id)} isShowDelete
/> onDelete={() => onDelete(item.id)}
</div> />
</div>
)}
</div> </div>
) )
})} })}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment