-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAvatarButton.tsx
More file actions
25 lines (23 loc) · 955 Bytes
/
AvatarButton.tsx
File metadata and controls
25 lines (23 loc) · 955 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import Avatar from 'components/Avatar/Avatar';
import { getAvatar, getGroups, getName } from 'helpers/LocalStorageHelper';
import { Ripple } from 'primereact/ripple';
const AvatarButton = () => {
return (
<li className="border-top-1 lg:border-top-none surface-border">
<a
className="align-items-center border-left-2 border-transparent cursor-pointer flex font-medium h-full hover:border-primary lg:border-bottom-2 lg:border-left-none lg:px-3 lg:py-2 p-3 no-underline p-ripple px-6 transition-colors transition-duration-150"
href="/profile"
>
<Avatar className="lg:mr-0 mr-3" image={getAvatar()} />
<div className="block lg:hidden">
<div className="font-medium text-900">{getName()}</div>
<span className="font-medium text-600 text-sm">
{getGroups().join(', ')}
</span>
</div>
<Ripple />
</a>
</li>
);
};
export default AvatarButton;