feat: implement sharing page
This commit is contained in:
parent
137bdadaf9
commit
6962beb8e2
12 changed files with 113 additions and 69 deletions
|
|
@ -27,7 +27,7 @@ export function SidebarItem({ chat, children }: SidebarItemProps) {
|
|||
return (
|
||||
<>
|
||||
<Link
|
||||
href={chat.path || `/chat/${chat.id}`}
|
||||
href={chat.path}
|
||||
className={cn(
|
||||
buttonVariants({ variant: 'ghost' }),
|
||||
'group w-full px-2',
|
||||
|
|
@ -50,7 +50,7 @@ export function SidebarItem({ chat, children }: SidebarItemProps) {
|
|||
>
|
||||
<span className="whitespace-nowrap">{chat.title}</span>
|
||||
</div>
|
||||
{children}
|
||||
{isActive && children}
|
||||
</Link>
|
||||
</>
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue