| | |
| | | import React, { useState, useRef, useEffect, useMemo } from "react"; |
| | | import { useTranslate } from "react-admin"; |
| | | import { |
| | | TextField, |
| | | Select, |
| | |
| | | const theme = useTheme(); |
| | | const themeMode = theme.palette.mode; |
| | | const notify = useNotification(); |
| | | const translate = useTranslate(); |
| | | |
| | | const mapRef = useRef(); |
| | | const contentRef = useRef(); |
| | |
| | | setDeviceVisible(false); |
| | | break |
| | | case MapMode.MOVABLE_MODE: |
| | | setDeviceVisible(true); |
| | | break |
| | | case MapMode.SETTINGS_MODE: |
| | | setDeviceVisible(false); |
| | |
| | | setDeviceVisible(false); |
| | | }} |
| | | onDrop={onDrop} |
| | | width={378} |
| | | /> |
| | | |
| | | </Box> |