got rid of unnessarry logs
This commit is contained in:
parent
8fc8745862
commit
67ea4cbfdc
3 changed files with 8 additions and 20 deletions
|
|
@ -1,5 +1,4 @@
|
|||
import { Grid2, Theme, Typography } from "@mui/material";
|
||||
import { makeStyles } from "@mui/styles";
|
||||
import { Grid2 } from "@mui/material";
|
||||
import { Device, User } from "models";
|
||||
import { getContextKeys, getContextTypes } from "pbHelpers/Context";
|
||||
import { useDeviceAPI, useGlobalState, useSnackbar } from "providers";
|
||||
|
|
@ -13,12 +12,12 @@ import DeviceActions from "common/DeviceActions";
|
|||
import { pond } from "protobuf-ts/pond";
|
||||
import { cloneDeep } from "lodash";
|
||||
|
||||
const useStyles = makeStyles((theme: Theme) => {
|
||||
// const isMobile = useMobile()
|
||||
return ({
|
||||
// const useStyles = makeStyles((theme: Theme) => {
|
||||
// // const isMobile = useMobile()
|
||||
// return ({
|
||||
|
||||
});
|
||||
});
|
||||
// });
|
||||
// });
|
||||
|
||||
export default function DevicePage() {
|
||||
const deviceAPI = useDeviceAPI()
|
||||
|
|
@ -74,13 +73,9 @@ export default function DevicePage() {
|
|||
.finally(() => setLoading(false));
|
||||
}
|
||||
|
||||
useEffect(() => {
|
||||
console.log(device)
|
||||
}, [device])
|
||||
|
||||
useEffect(() => {
|
||||
loadDevice()
|
||||
}, [])
|
||||
}, [deviceID])
|
||||
|
||||
const toggleNotificationPreference = () => {
|
||||
let updatedPreferences = cloneDeep(preferences);
|
||||
|
|
|
|||
|
|
@ -10,7 +10,6 @@ import { useEffect, useState } from "react";
|
|||
import PageContainer from "./PageContainer";
|
||||
import { useMobile } from "hooks";
|
||||
import { useLocation, useNavigate, useParams } from "react-router-dom";
|
||||
import { or } from "utils/types";
|
||||
import { getContextKeys, getContextTypes } from "pbHelpers/Context";
|
||||
import { getDeviceStateHelper } from "pbHelpers/DeviceState";
|
||||
import { Device, Group } from "models";
|
||||
|
|
@ -206,7 +205,6 @@ export default function Devices() {
|
|||
// };
|
||||
|
||||
const prependToUrl = (prependage: number | string) => {
|
||||
console.log(location.pathname)
|
||||
const basePath = location.pathname.replace(/\/$/, "");
|
||||
return(`/${prependage}/${basePath}`.replace(/\/{2,}/g, "/").replace(/(\/[^/]+)\/\1+/g, "$1"));
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue