New UI
This commit is contained in:
parent
a7b1502197
commit
311eb8b6ee
@ -87,14 +87,14 @@ export default function NavBarItem({ item }: Props) {
|
|||||||
onClick={handleMenuClick}
|
onClick={handleMenuClick}
|
||||||
>
|
>
|
||||||
{item.icon && <BaseIcon path={item.icon} size={22} className="transition-colors" />}
|
{item.icon && <BaseIcon path={item.icon} size={22} className="transition-colors" />}
|
||||||
|
{item.isCurrentUser && <UserAvatarCurrentUser className="w-6 h-6 inline-flex" />}
|
||||||
<span
|
<span
|
||||||
className={`px-2 transition-colors w-40 grow ${
|
className={`px-2 transition-colors ${item.isCurrentUser ? '' : 'w-40 grow'} ${
|
||||||
item.isDesktopNoLabel && item.icon ? 'lg:hidden' : ''
|
item.isDesktopNoLabel && item.icon ? 'lg:hidden' : ''
|
||||||
}`}
|
}`}
|
||||||
>
|
>
|
||||||
{itemLabel}
|
{itemLabel}
|
||||||
</span>
|
</span>
|
||||||
{item.isCurrentUser && <UserAvatarCurrentUser className="w-6 h-6 mr-3 inline-flex" />}
|
|
||||||
{item.menu && (
|
{item.menu && (
|
||||||
<BaseIcon
|
<BaseIcon
|
||||||
path={isDropdownActive ? mdiChevronUp : mdiChevronDown}
|
path={isDropdownActive ? mdiChevronUp : mdiChevronDown}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user