#
luxiaotao1123
2024-10-11 4cbeb181378a123c1905fa318cf61bdcfb144b8e
zy-acs-flow/src/map/settings/index.jsx
@@ -4,6 +4,7 @@
import CloseIcon from '@mui/icons-material/Close';
import { PAGE_DRAWER_WIDTH } from '@/config/setting';
import MapSettings from './MapSettings';
import ConfigSettings from './ConfigSettings';
const Settings = (props) => {
    const { open, onCancel, sprite, width = PAGE_DRAWER_WIDTH, title, setSpriteSettings } = props;
@@ -41,7 +42,7 @@
                        <Stack direction="row" p={2}>
                            <Typography variant="h6" flex="1">
                                {sprite
                                    ? 'No.' + sprite?.data?.uuid + ' - ' + translate(`page.map.devices.${sprite?.data?.type?.toLowerCase()}`)
                                    ? translate(`page.map.devices.${sprite?.data?.type?.toLowerCase()}`) + ' - ' + sprite?.data?.uuid
                                    : translate('page.map.settings.title')}
                            </Typography>
                            <IconButton onClick={handleClose} size="small">
@@ -86,7 +87,6 @@
                                            <ConfigSettings
                                                sprite={sprite}
                                                onSubmit={() => {
                                                    alert('ConfigSettings')
                                                }}
                                            />
                                        )}
@@ -98,13 +98,6 @@
                )}
            </Drawer>
        </>
    )
}
const ConfigSettings = () => {
    return (
        <h1>ConfigSettings</h1>
    )
}