|
|
|
@ -29,9 +29,7 @@ const userOptions: Array<UserOption> = [
|
|
|
|
{
|
|
|
|
{
|
|
|
|
title: 'Profile',
|
|
|
|
title: 'Profile',
|
|
|
|
icon: 'user',
|
|
|
|
icon: 'user',
|
|
|
|
onClick: () => {
|
|
|
|
onClick: () => openUserProfile(),
|
|
|
|
useRouter().push('/profile')
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
]
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
|
|
@ -58,17 +56,21 @@ onClickOutside(sidebar, () => {
|
|
|
|
class="hover:cursor-pointer" />
|
|
|
|
class="hover:cursor-pointer" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<Icon
|
|
|
|
<Icon
|
|
|
|
|
|
|
|
@click="openUserProfile()"
|
|
|
|
name="user"
|
|
|
|
name="user"
|
|
|
|
size="36"
|
|
|
|
size="36"
|
|
|
|
ref="userIcon" />
|
|
|
|
ref="userIcon"
|
|
|
|
<div>
|
|
|
|
class="hover:cursor-pointer" />
|
|
|
|
|
|
|
|
<div
|
|
|
|
|
|
|
|
@click="openUserProfile()"
|
|
|
|
|
|
|
|
class="hover:cursor-pointer hover:underline">
|
|
|
|
{{ user }}
|
|
|
|
{{ user }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div ref="userOptionsCard">
|
|
|
|
<div ref="userOptionsCard">
|
|
|
|
<div
|
|
|
|
<div
|
|
|
|
v-for="userOption in userOptions"
|
|
|
|
v-for="userOption in userOptions"
|
|
|
|
class="flex w-full items-center p-4 text-xl hover:bg-lightgray"
|
|
|
|
class="flex w-full items-center p-4 text-xl hover:cursor-pointer hover:bg-lightgray"
|
|
|
|
@click="userOption.onClick()">
|
|
|
|
@click="userOption.onClick()">
|
|
|
|
<Icon
|
|
|
|
<Icon
|
|
|
|
v-if="userOption.icon"
|
|
|
|
v-if="userOption.icon"
|
|
|
|
|