mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-06-30 20:39:46 +02:00
refactor: remove folder and file icons in knowledge
This commit is contained in:
parent
fa528f16e1
commit
c5c36ed0e4
1 changed files with 1 additions and 4 deletions
|
|
@ -886,8 +886,7 @@ function Tree({
|
||||||
if (isRenaming) {
|
if (isRenaming) {
|
||||||
return (
|
return (
|
||||||
<SidebarMenuItem>
|
<SidebarMenuItem>
|
||||||
<div className="flex items-center gap-2 px-2 py-1">
|
<div className="flex items-center px-2 py-1">
|
||||||
{isDir ? <Folder className="size-4 shrink-0" /> : <File className="size-4 shrink-0" />}
|
|
||||||
<Input
|
<Input
|
||||||
value={newName}
|
value={newName}
|
||||||
onChange={(e) => setNewName(e.target.value)}
|
onChange={(e) => setNewName(e.target.value)}
|
||||||
|
|
@ -924,7 +923,6 @@ function Tree({
|
||||||
isActive={isSelected}
|
isActive={isSelected}
|
||||||
onClick={() => onSelect(item.path, item.kind)}
|
onClick={() => onSelect(item.path, item.kind)}
|
||||||
>
|
>
|
||||||
<File className="size-4" />
|
|
||||||
<span>{item.name}</span>
|
<span>{item.name}</span>
|
||||||
</SidebarMenuButton>
|
</SidebarMenuButton>
|
||||||
</SidebarMenuItem>
|
</SidebarMenuItem>
|
||||||
|
|
@ -946,7 +944,6 @@ function Tree({
|
||||||
<CollapsibleTrigger asChild>
|
<CollapsibleTrigger asChild>
|
||||||
<SidebarMenuButton>
|
<SidebarMenuButton>
|
||||||
<ChevronRight className="transition-transform size-4" />
|
<ChevronRight className="transition-transform size-4" />
|
||||||
<Folder className="size-4" />
|
|
||||||
<span>{item.name}</span>
|
<span>{item.name}</span>
|
||||||
</SidebarMenuButton>
|
</SidebarMenuButton>
|
||||||
</CollapsibleTrigger>
|
</CollapsibleTrigger>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue