Revize 812b9f90
Přidáno uživatelem Václav Honzík před více než 2 roky(ů)
frontend/src/features/TrackingTool/TrackingTool.tsx | ||
---|---|---|
13 | 13 |
import FileUpload from './Upload/FileUpload' |
14 | 14 |
import { Map } from 'leaflet' |
15 | 15 |
import { formatHtmlStringToReactDom } from '../../utils/formatting/HtmlUtils' |
16 |
import MapPath from './MapPath' |
|
16 |
import MapPath from './Map/MapPath'
|
|
17 | 17 |
import { useDispatch, useSelector } from 'react-redux' |
18 | 18 |
import { RootState } from '../redux/store' |
19 | 19 |
import { clear, consumeErr as consumeError } from './trackingToolSlice' |
... | ... | |
21 | 21 |
import ClearIcon from '@mui/icons-material/Clear' |
22 | 22 |
import GeoJsonExportButton from './Upload/GeoJsonExportButton' |
23 | 23 |
import GeoJsonImportDialog from './Upload/GeoJsonImportDialog' |
24 |
import ProcessedTextDisplay from './ProcessedText/ProcessedTextDisplay' |
|
25 |
import DraggableMarkerList from './DraggableList/DraggableMarkerList' |
|
24 | 26 |
|
25 | 27 |
// Page with tracking tool |
26 | 28 |
const TrackingTool = () => { |
... | ... | |
150 | 152 |
<MapPath idx={idx} /> |
151 | 153 |
))} |
152 | 154 |
</MapContainer> |
153 |
{pathDto && ( |
|
154 |
<Fragment> |
|
155 |
<Card variant="outlined" sx={{ mt: 2 }}> |
|
156 |
<CardContent> |
|
157 |
<Stack direction="column"> |
|
158 |
<Typography |
|
159 |
variant="h5" |
|
160 |
sx={{ mb: 1 }} |
|
161 |
fontWeight="600" |
|
162 |
> |
|
163 |
Processed Text |
|
164 |
</Typography> |
|
165 |
<Typography variant="body2"> |
|
166 |
{formatHtmlStringToReactDom( |
|
167 |
pathDto.text ?? '' |
|
168 |
)} |
|
169 |
</Typography> |
|
170 |
</Stack> |
|
171 |
</CardContent> |
|
172 |
</Card> |
|
173 |
</Fragment> |
|
174 |
)} |
|
155 |
</Grid> |
|
156 |
<Grid container sx={{ mt: 1, mb: 20 }} spacing={1}> |
|
157 |
<Grid item xs={12} md={6}> |
|
158 |
<DraggableMarkerList /> |
|
159 |
</Grid> |
|
160 |
<Grid item xs={12} md={6}> |
|
161 |
<ProcessedTextDisplay /> |
|
162 |
</Grid> |
|
175 | 163 |
</Grid> |
176 | 164 |
</Grid> |
177 | 165 |
</Fragment> |
Také k dispozici: Unified diff
draggable list start
re #9741