Conneted Monitor page to backend. Added data normailization to Checks. Added JSdocs and proptypes
This commit is contained in:
1 parent
2f1053bd05
commit
171b1b8059
7 files changed
+92
-35
No files matched your search
@@ -3,24 +3,12 @@ import { Outlet } from "react-router";
|
||||
import DashboardSidebar from "../../Components/DashboardSidebar";
|
||||
import "./index.css";
|
||||
|
||||
// Demo, remove me
|
||||
import { useSelector } from "react-redux";
|
||||
// Emd Demo
|
||||
|
||||
const HomeLayout = () => {
|
||||
const authState = useSelector((state) => state.auth);
|
||||
const { user, msg } = authState;
|
||||
return (
|
||||
<div className="home-layout">
|
||||
<NavBar />
|
||||
<div className="main-content">
|
||||
<DashboardSidebar />
|
||||
{/* Remove me later */}
|
||||
{user && <p>{user.firstname}</p>}
|
||||
{user && <p>{user.lastname}</p>}
|
||||
{user && <p>{user.email}</p>}
|
||||
{msg && <p>Msg: {msg}</p>}
|
||||
{/* I am a demo */}
|
||||
<Outlet />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user