diff --git a/src/component/ComponentCard.tsx b/src/component/ComponentCard.tsx
index d59ada8..00d4ebe 100644
--- a/src/component/ComponentCard.tsx
+++ b/src/component/ComponentCard.tsx
@@ -5,12 +5,13 @@ import {
CardActionArea,
CardContent,
CardHeader,
- Grid2 as Grid,
+ //Grid2 as Grid,
Switch,
Theme,
Tooltip,
Typography
} from "@mui/material";
+import Grid from '@mui/material/Grid2';
import EventBlocker from "common/EventBlocker";
import MeasurementSummary from "component/MeasurementSummary";
import { useComponentAPI, useSnackbar, useThemeType } from "hooks";
@@ -366,15 +367,6 @@ export default function ComponentCard(props: Props) {
};
return (
-
openComponentPage(event)}
@@ -385,6 +377,6 @@ export default function ComponentCard(props: Props) {
{sensorCard()}
-
+
);
}
diff --git a/src/pages/Device.tsx b/src/pages/Device.tsx
index efb2a70..9e13e4c 100644
--- a/src/pages/Device.tsx
+++ b/src/pages/Device.tsx
@@ -1,4 +1,5 @@
-import { Button, Checkbox, Divider, FormControlLabel, Grid2 as Grid, List, ListItem, Typography } from "@mui/material";
+import { Button, Checkbox, Divider, FormControlLabel, List, ListItem, Typography } from "@mui/material";
+import Grid from '@mui/material/Grid2';
import { Component, Device, Interaction, User } from "models";
import { getContextKeys, getContextTypes } from "pbHelpers/Context";
import { useDeviceAPI, useGlobalState, useSnackbar } from "providers";
@@ -288,8 +289,18 @@ export default function DevicePage() {
-
- {sensorComponents}
+
+ {sensorComponents.map(card => (
+
+ {card}
+
+ ))}
@@ -299,8 +310,18 @@ export default function DevicePage() {
-
- {controllerComponents}
+
+ {controllerComponents.map(card => (
+
+ {card}
+
+ ))}
{device.settings.mutations.length > 0 && (