.
This commit is contained in:
@@ -1,5 +1,4 @@
|
|||||||
import { createSlice } from "@reduxjs/toolkit";
|
import { createSlice } from "@reduxjs/toolkit";
|
||||||
import type {PayloadAction} from "@reduxjs/toolkit";
|
|
||||||
import { loginThunk } from "./authThunks";
|
import { loginThunk } from "./authThunks";
|
||||||
|
|
||||||
interface AuthState {
|
interface AuthState {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import Header from "../../widgets/Header/Header";
|
import Header from "../../widgets/Header/Header";
|
||||||
import { Outlet } from "react-router";
|
import { Outlet } from "react-router";
|
||||||
import { useAppDispatch, useAppSelector } from '../../app/hooks';
|
import { useAppSelector } from '../../app/hooks';
|
||||||
import type { RootState } from "../../app/store";
|
import type { RootState } from "../../app/store";
|
||||||
import { Navigate } from "react-router";
|
import { Navigate } from "react-router";
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import React, { useEffect, useState } from 'react';
|
import React, { useEffect } from 'react';
|
||||||
import { useNavigate } from 'react-router-dom';
|
import { useNavigate } from 'react-router-dom';
|
||||||
import { Form, Input, Button, Checkbox, Alert, Card, Spin, Image } from 'antd';
|
import { Form, Input, Button, Checkbox, Alert, Card, Spin, Image } from 'antd';
|
||||||
import { UserOutlined, LockOutlined } from '@ant-design/icons';
|
import { UserOutlined, LockOutlined } from '@ant-design/icons';
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { NavLink } from "react-router";
|
import { NavLink } from "react-router";
|
||||||
import { useAppDispatch, useAppSelector } from '../../app/hooks';
|
import { useAppDispatch } from '../../app/hooks';
|
||||||
import { logout } from "../../features/auth/authSlice";
|
import { logout } from "../../features/auth/authSlice";
|
||||||
|
|
||||||
const Header = () =>{
|
const Header = () =>{
|
||||||
|
|||||||
Reference in New Issue
Block a user