Skip to content

Commit

Permalink
fix eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
Salam-Dalloul committed Aug 2, 2024
1 parent 14cd5e8 commit 6e4a90c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { useDispatch, useSelector } from "react-redux";
import "@metacell/geppetto-meta-ui/flex-layout/style/light.scss";
import { useGlobalContext } from "../contexts/GlobalContext.tsx";
import type { RootState } from "../layout-manager/layoutManagerFactory.ts";
import {emDataViewerWidget, threeDViewerWidget, twoDViewerWidget} from "../layout-manager/widgets.ts";
import { emDataViewerWidget, threeDViewerWidget, twoDViewerWidget } from "../layout-manager/widgets.ts";
import theme from "../theme";
import Layout from "./ViewerContainer/Layout.tsx";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
import { Box } from "@mui/material";
import type { CameraControls } from "@react-three/drei";
import cytoscape from "cytoscape";
import dagre from "cytoscape-dagre";
import fcose from "cytoscape-fcose";
import { useRef } from "react";
import SceneControls from "./SceneControls.tsx";
import {useRef} from "react";
import {CameraControls} from "@react-three/drei";

cytoscape.use(fcose);
cytoscape.use(dagre);

const EM = () => {
const cameraControlRef = useRef<CameraControls | null>(null);

return (
<Box sx={{ position: "relative", display: "flex", width: "100%", height: "100%" }}>

<SceneControls cameraControlRef={cameraControlRef} />
</Box>
);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
import {
FileDownloadOutlined,
HomeOutlined,
TextsmsOutlined
} from "@mui/icons-material";
import { FileDownloadOutlined, HomeOutlined, TextsmsOutlined } from "@mui/icons-material";
import ZoomInIcon from "@mui/icons-material/ZoomIn";
import ZoomOutIcon from "@mui/icons-material/ZoomOut";
import { Box, Divider, IconButton } from "@mui/material";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import EMViewer from "../components/viewers/EM/EM.tsx";
import ThreeDViewer from "../components/viewers/ThreeD/ThreeDViewer.tsx";
import TwoDViewer from "../components/viewers/TwoD/TwoDViewer.tsx";
import { widgetIds } from "./widgets.ts";
import EMViewer from "../components/viewers/EM/EM.tsx";

const componentMap = {
[widgetIds.threeDViewer]: ThreeDViewer,
Expand Down

0 comments on commit 6e4a90c

Please sign in to comment.