diff --git a/Client/src/Components/Inputs/Field/index.css b/Client/src/Components/Inputs/Field/index.css
index 33196b3b9..940969c9e 100644
--- a/Client/src/Components/Inputs/Field/index.css
+++ b/Client/src/Components/Inputs/Field/index.css
@@ -2,12 +2,9 @@
min-width: var(--env-var-width-3);
}
-.field-infrastructure-alert {
+.field-infrastructure-alert{
max-width: var(--env-var-width-4);
-}
-
-.field-infrastructure-alert .MuiInputBase-root:has(input) {
- height: var(--env-var-height-2);
+ min-width: unset;
}
.field h3.MuiTypography-root,
diff --git a/Client/src/Components/Inputs/Field/index.jsx b/Client/src/Components/Inputs/Field/index.jsx
index d1eab532d..6409321fe 100644
--- a/Client/src/Components/Inputs/Field/index.jsx
+++ b/Client/src/Components/Inputs/Field/index.jsx
@@ -57,7 +57,7 @@ const Field = forwardRef(
return (
- { error && (
+ {error && (
{
{ name: "details", path: `/infrastructure/${monitorId}` },
];
const [monitor, setMonitor] = useState(null);
+ const { authToken } = useSelector((state) => state.auth);
+ const [dateRange, setDateRange] = useState("day");
const { statusColor, determineState } = useUtils();
// These calculations are needed because ResponsiveContainer
// doesn't take padding of parent/siblings into account
@@ -183,11 +186,14 @@ const InfrastructureDetails = () => {
useEffect(() => {
const fetchData = async () => {
try {
- const response = await axios.get("http://localhost:5000/api/v1/dummy-data", {
- headers: {
- "Content-Type": "application/json",
- "Cache-Control": "no-cache",
- },
+ const response = await networkService.getStatsByMonitorId({
+ authToken: authToken,
+ monitorId: monitorId,
+ sortOrder: null,
+ limit: null,
+ dateRange: dateRange,
+ numToDisplay: 50,
+ normalize: true,
});
setMonitor(response.data.data);
} catch (error) {