mirror of
https://github.com/umami-software/umami.git
synced 2026-02-06 13:47:15 +01:00
Updated profile page.
This commit is contained in:
parent
6802093d69
commit
8bcea84409
4 changed files with 15 additions and 7 deletions
|
|
@ -2,9 +2,7 @@ import { Key } from 'react';
|
|||
import { Icon, Button, PopupTrigger, Popup, Menu, Item, Text } from 'react-basics';
|
||||
import { useRouter } from 'next/navigation';
|
||||
import Icons from 'components/icons';
|
||||
import { useMessages } from 'components/hooks';
|
||||
import { useLogin } from 'components/hooks';
|
||||
import { useLocale } from 'components/hooks';
|
||||
import { useMessages, useLogin, useLocale } from 'components/hooks';
|
||||
import { CURRENT_VERSION } from 'lib/constants';
|
||||
import Avatar from 'components/common/Avatar';
|
||||
import styles from './ProfileButton.module.css';
|
||||
|
|
@ -18,7 +16,7 @@ export function ProfileButton() {
|
|||
|
||||
const handleSelect = (key: Key, close: () => void) => {
|
||||
if (key === 'profile') {
|
||||
router.push('/settings/profile');
|
||||
router.push('/profile');
|
||||
}
|
||||
if (key === 'logout') {
|
||||
router.push('/logout');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue