mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 12:47:13 +01:00
Update header components. Update theme button.
This commit is contained in:
parent
aa265d1d42
commit
823fdcbeae
11 changed files with 112 additions and 32 deletions
|
|
@ -57,7 +57,7 @@
|
|||
}
|
||||
|
||||
.light {
|
||||
background: var(--gray50);
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.light:hover {
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ import { useSelector } from 'react-redux';
|
|||
import { useRouter } from 'next/router';
|
||||
import Menu from './Menu';
|
||||
import Icon from './Icon';
|
||||
import Button from './Button';
|
||||
import useDocumentClick from 'hooks/useDocumentClick';
|
||||
import User from 'assets/user.svg';
|
||||
import Chevron from 'assets/chevron-down.svg';
|
||||
|
|
@ -49,10 +50,15 @@ export default function UserButton() {
|
|||
|
||||
return (
|
||||
<div ref={ref} className={styles.container}>
|
||||
<div className={styles.button} onClick={() => setShowMenu(state => !state)}>
|
||||
<Icon icon={<User />} size="large" />
|
||||
<Button
|
||||
icon={<User />}
|
||||
className={styles.button}
|
||||
onClick={() => setShowMenu(state => !state)}
|
||||
size="large"
|
||||
variant="light"
|
||||
>
|
||||
<Icon icon={<Chevron />} size="small" />
|
||||
</div>
|
||||
</Button>
|
||||
{showMenu && (
|
||||
<Menu
|
||||
className={styles.menu}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue