Skip to content

Commit

Permalink
refactor: remove notification.success
Browse files Browse the repository at this point in the history
  • Loading branch information
d3george committed Jun 30, 2024
1 parent e5452ec commit 6c59499
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/store/userStore.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { useMutation } from '@tanstack/react-query';
import { App } from 'antd';
import { useCallback } from 'react';
import { useTranslation } from 'react-i18next';
import { useNavigate } from 'react-router-dom';
import { create } from 'zustand';

Expand Down Expand Up @@ -50,9 +49,8 @@ export const useUserPermission = () => useUserStore((state) => state.userInfo.pe
export const useUserActions = () => useUserStore((state) => state.actions);

export const useSignIn = () => {
const { t } = useTranslation();
const navigatge = useNavigate();
const { notification, message } = App.useApp();
const { message } = App.useApp();
const { setUserToken, setUserInfo } = useUserActions();

const signInMutation = useMutation(userService.signin);
Expand Down

0 comments on commit 6c59499

Please sign in to comment.