Last change
on this file was bc20307, checked in by Tasevski2 <39170279+Tasevski2@…>, 2 years ago |
Push before video
|
-
Property mode
set to
100644
|
File size:
1.4 KB
|
Rev | Line | |
---|
[bc20307] | 1 | import { RightSideWrapper, EditIcon } from './styles';
|
---|
| 2 |
|
---|
| 3 | import ZoneSector from './ZoneSector';
|
---|
| 4 | import ResponsiblePersonsSector from './ResponsiblePersonsSector';
|
---|
| 5 | import ParkingSpacesSector from './ParkingSpacesSector';
|
---|
| 6 | import { IconButton } from '@mui/material';
|
---|
| 7 |
|
---|
| 8 | const ParkingZoneInfoViewer = ({ zone = {}, setEditMode }) => {
|
---|
| 9 | return (
|
---|
| 10 | <>
|
---|
| 11 | <ZoneSector
|
---|
| 12 | name={zone?.pzName ?? null}
|
---|
| 13 | hourlyRate={zone?.price ?? null}
|
---|
| 14 | from={zone?.from ?? 0}
|
---|
| 15 | to={zone?.to ?? 0}
|
---|
| 16 | color={zone?.color ?? ''}
|
---|
| 17 | centerLocation={zone?.parkingZoneLocation?.centre ?? null}
|
---|
| 18 | coords={zone?.parkingZoneLocation?.coords ?? null}
|
---|
| 19 | />
|
---|
| 20 | <RightSideWrapper>
|
---|
| 21 | <IconButton
|
---|
| 22 | style={{
|
---|
| 23 | position: 'absolute',
|
---|
| 24 | top: -60,
|
---|
| 25 | right: -8,
|
---|
| 26 | }}
|
---|
| 27 | onClick={() => setEditMode(true)}
|
---|
| 28 | >
|
---|
| 29 | <EditIcon />
|
---|
| 30 | </IconButton>
|
---|
| 31 | <ResponsiblePersonsSector
|
---|
| 32 | persons={zone?.responsibleWorkers ?? []}
|
---|
| 33 | />
|
---|
| 34 | <ParkingSpacesSector
|
---|
| 35 | parkingSpacesLocation={zone?.parkingSpaces ?? null}
|
---|
| 36 | />
|
---|
| 37 | </RightSideWrapper>
|
---|
| 38 | </>
|
---|
| 39 | );
|
---|
| 40 | };
|
---|
| 41 |
|
---|
| 42 | export default ParkingZoneInfoViewer;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.