mirror of
https://github.com/bluewave-labs/Checkmate.git
synced 2026-04-24 18:08:21 -05:00
Create new monitor without dropdowns
This commit is contained in:
@@ -1,13 +1,25 @@
|
||||
import CreateNewMonitor from "./CreateNewMonitor";
|
||||
// import CurrentStats from "./CurrentStats";
|
||||
import CurrentStats from "./CurrentStats";
|
||||
import "./index.css";
|
||||
import React from "react";
|
||||
import { useEffect } from "react";
|
||||
import { useSelector } from "react-redux";
|
||||
import { useDispatch } from "react-redux";
|
||||
import { getMonitorsByUserId } from "../../Features/Monitors/monitorsSlice";
|
||||
|
||||
const Monitors = () => {
|
||||
const monitorState = useSelector((state) => state.monitors);
|
||||
const authstate = useSelector((state) => state.auth);
|
||||
const dispatch = useDispatch();
|
||||
|
||||
useEffect(() => {
|
||||
dispatch(getMonitorsByUserId(authstate.authToken));
|
||||
}, []);
|
||||
|
||||
return (
|
||||
<div className="monitors">
|
||||
{/* <CurrentStats /> */}
|
||||
<CreateNewMonitor />
|
||||
{/* <CurrentStats monitors={monitorState.monitors} /> */}
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user