Revize e8591566
Přidáno uživatelem Václav Honzík před asi 2 roky(ů)
frontend/src/features/Catalog/CatalogItemDetail.tsx | ||
---|---|---|
1 |
import { |
|
2 |
Button, |
|
3 |
Divider, |
|
4 |
Grid, |
|
5 |
Paper, |
|
6 |
Typography, |
|
7 |
} from '@mui/material' |
|
1 |
import { Button, Divider, Grid, Paper, Typography } from '@mui/material' |
|
8 | 2 |
import { Fragment, useEffect, useState } from 'react' |
9 | 3 |
import { useParams } from 'react-router-dom' |
10 | 4 |
import axiosInstance from '../../api/api' |
... | ... | |
14 | 8 |
import CatalogItemMap from './CatalogItemMap' |
15 | 9 |
import ArrowBackIosIcon from '@mui/icons-material/ArrowBackIos' |
16 | 10 |
import { Link as RouterLink } from 'react-router-dom' |
11 |
import DOMPurify from 'dompurify' |
|
12 |
import { formatHtmlStringToReactDom } from '../../utils/formatting/HtmlUtils' |
|
17 | 13 |
|
18 | 14 |
const apiError = |
19 | 15 |
'Error while fetching data from the server, please try again later.' |
... | ... | |
117 | 113 |
<ShowErrorIfPresent err={err} /> |
118 | 114 |
|
119 | 115 |
<Paper style={{ minHeight: '100vh' }} variant="outlined"> |
120 |
|
|
121 | 116 |
{isItemLoading && !err ? <ContentLoading /> : null} |
122 | 117 |
{!isItemLoading && item ? ( |
123 | 118 |
<Grid container justifyContent="space-around"> |
Také k dispozici: Unified diff
DomPurify + Escaping Impl
re #9626