import MenuItem from '@mui/material/MenuItem'; import { ColorPicker } from 'material-ui-color'; import { Wrapper, Title, DividerUnderTitle, Characteristics, KeyValueWrapper, Key, Value, ColorCircleWrapper, ZoneCenterLocation, SmallTitle, LatLngCenter, LabelAndLatLngWrapper, LatLngLabel, LatLngValue, ZoneCornersLocation, TableWrapper, EditedInputAdornment, TimeSelectInputsWrapper, TimeSelectInput, TImeSelectInputsDivider, AddIcon, TableDataInput, DeleteIcon, } from './styles'; import { IconButton } from '@mui/material'; const selectInputValues = Array(24) .fill() .map((_, index) => ( {index + 1 < 10 ? `0${index + 1}` : index + 1} )); const MenuProps = { PaperProps: { style: { height: 150, width: '35px', }, }, }; const ZoneSector = ({ zoneName, hourlyRate, from, to, zoneColor, setZoneColor, lat, lng, setZoneSectorData, newCoord, setNewCoord, coords, handleCoordsChange, }) => { return ( Паркинг Зона Назив: Цена од Час: ден. ), }} /> Работни часови: NONE {selectInputValues} NONE {selectInputValues} Боја на зона: setZoneColor(`#${e.hex}`)} hideTextfield /> Центар на Зона Латитуда: Лонгитуда: Темиња на Зона {coords.map(({ lat, lng }, index) => ( ))}
Латитуда Лонгитуда
setNewCoord({ ...newCoord, newLat: e.target.value }) } value={newCoord.newLat} /> setNewCoord({ ...newCoord, newLng: e.target.value }) } value={newCoord.newLng} /> handleCoordsChange({ type: 'add' })} >
handleCoordsChange({ type: 'delete', payload: { index }, }) } > handleCoordsChange({ type: 'update', payload: { index, column: 'lat', value: e.target.value, }, }) } /> handleCoordsChange({ type: 'update', payload: { index, column: 'lng', value: e.target.value, }, }) } />
); }; export default ZoneSector;