Link tags aren't hiding sidebar on click

This commit is contained in:
Ian Philips 2022-08-03 16:30:05 -06:00
parent fab83cfc33
commit 756115ba54

View File

@ -322,23 +322,21 @@ function GroupsList(props: {
ref={setContainerRef} ref={setContainerRef}
> >
{memberItems.map((item) => ( {memberItems.map((item) => (
<Link <a
href={ href={
item.href + item.href +
(notifIsForThisItem(item.href) ? '/' + GROUP_CHAT_SLUG : '') (notifIsForThisItem(item.href) ? '/' + GROUP_CHAT_SLUG : '')
} }
key={item.href} key={item.name}
onClick={trackCallback('sidebar: ' + item.name)}
className={clsx(
'cursor-pointer truncate',
'group flex items-center rounded-md px-3 py-2 text-sm font-medium text-gray-600 hover:bg-gray-100 hover:text-gray-900',
notifIsForThisItem(item.href) && 'font-bold'
)}
> >
<span {item.name}
className={clsx( </a>
'cursor-pointer truncate',
'group flex items-center rounded-md px-3 py-2 text-sm font-medium text-gray-600 hover:bg-gray-100 hover:text-gray-900',
notifIsForThisItem(item.href) && 'font-bold'
)}
>
{item.name}
</span>
</Link>
))} ))}
</div> </div>
</> </>