This commit is contained in:
2020-08-18 15:48:14 +03:00
parent 4e465ce39f
commit 1d285fcfc3
117 changed files with 154 additions and 15 deletions
Executable → Regular
+2 -2
View File
@@ -1,7 +1,7 @@
import React from "react";
import './Navbar.sass'
import {connect} from "react-redux";
import {userLogout} from "../../api/users";
import {userLogout} from "../../api/auth";
import {Link} from "react-router-dom";
import {logout, setModal} from "../../store/actions";
import {hasAccessToAdminPanel} from "../../utils";
@@ -108,4 +108,4 @@ export default connect(
logout: () => dispatch(logout()),
setModal: (modal: React.ReactNode | null) => dispatch(setModal(modal))
})
)(Navbar);
)(Navbar);