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}
>
{memberItems.map((item) => (
<Link
<a
href={
item.href +
(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
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'
)}
>
{item.name}
</span>
</Link>
{item.name}
</a>
))}
</div>
</>