| | |
| | | const { styles } = useStyles(); |
| | | const mapRef = React.useRef(); |
| | | const contentRef = React.useRef(); |
| | | const sensorTypeSelectOptions = Utils.sensorTypeSelectOptions(intl); |
| | | |
| | | const [model, setModel] = React.useState(() => MapModel.OBSERVER_MODEL); |
| | | const [deviceVisible, setDeviceVisible] = React.useState(false); |
| | |
| | | <Header className={styles.header}> |
| | | <Row style={{ height: '100%' }}> |
| | | <Col className={styles.headerCol} span={12} style={{}}> |
| | | |
| | | <Select |
| | | className='map-header-select' |
| | | variant='filled' |
| | | defaultValue="agv" |
| | | style={{ |
| | | width: 160, |
| | | }} |
| | | size={'large'} |
| | | options={sensorTypeSelectOptions} |
| | | defaultValue={sensorTypeSelectOptions?.[0]?.value} |
| | | onChange={(value, option) => { |
| | | console.log(value, option); |
| | | }} |
| | | options={[ |
| | | { |
| | | value: 'agv', |
| | | label: 'agv', |
| | | }, |
| | | { |
| | | value: 'crn', |
| | | label: 'crn', |
| | | }, |
| | | ]} |
| | | /> |
| | | <AutoComplete |
| | | className='map-header-select' |