mirror of
https://github.com/umami-software/umami.git
synced 2025-12-06 01:18:00 +01:00
Replaced redux with zustand. Fixed login issue, closes #980.
This commit is contained in:
parent
7071f5fba5
commit
9937caa569
33 changed files with 234 additions and 286 deletions
|
|
@ -1,6 +1,5 @@
|
|||
import React from 'react';
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
import { useSelector } from 'react-redux';
|
||||
import { useRouter } from 'next/router';
|
||||
import MenuButton from 'components/common/MenuButton';
|
||||
import Icon from 'components/common/Icon';
|
||||
|
|
@ -9,9 +8,10 @@ import Chevron from 'assets/chevron-down.svg';
|
|||
import styles from './UserButton.module.css';
|
||||
import { removeItem } from 'lib/web';
|
||||
import { AUTH_TOKEN } from 'lib/constants';
|
||||
import useUser from 'hooks/useUser';
|
||||
|
||||
export default function UserButton() {
|
||||
const user = useSelector(state => state.user);
|
||||
const { user } = useUser();
|
||||
const router = useRouter();
|
||||
|
||||
const menuOptions = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue