diff --git a/src/components/modules/violations/ViolationDetails.js b/src/components/modules/violations/ViolationDetails.js index ce6a530..62177ae 100644 --- a/src/components/modules/violations/ViolationDetails.js +++ b/src/components/modules/violations/ViolationDetails.js @@ -11,6 +11,7 @@ import { faUpload, faEyeSlash, faDove, + faVideo, } from '@fortawesome/free-solid-svg-icons' import { ContentPanel } from '../Modules' @@ -380,6 +381,11 @@ export default (props) => { )} + {data.type === 'video' && ( +

+ Видео сигнал +

+ )}

Описание

- + + Тип:

+ + diff --git a/src/components/modules/violations/ViolationList.js b/src/components/modules/violations/ViolationList.js index 0a27bdb..7bd8f5b 100644 --- a/src/components/modules/violations/ViolationList.js +++ b/src/components/modules/violations/ViolationList.js @@ -8,6 +8,7 @@ import { faFastForward, faFastBackward, faCircle, + faVideo, } from '@fortawesome/free-solid-svg-icons' import { AuthContext } from '../../App' @@ -116,6 +117,7 @@ export default (props) => { cityRegion: query.get('cityRegion'), status: query.get('status'), published: query.get('published'), + type: query.get('type'), page: query.get('page'), } @@ -142,6 +144,7 @@ export default (props) => { query.get('cityRegion'), query.get('status'), query.get('published'), + query.get('type'), ]) const status = (apiStatus) => { @@ -252,6 +255,7 @@ export default (props) => { № на секция Град Автор + Тип Описание Статут @@ -259,7 +263,7 @@ export default (props) => { {loading ? ( - + @@ -305,6 +309,15 @@ export default (props) => { ? `${violation.author.firstName} ${violation.author.lastName[0]}.` : violation?.author?.name} + + {violation.type === 'video' ? ( + + Видео + + ) : ( + 'Стандартен' + )} + {violation.description.slice(0, 40) + '...'} {status(violation.status)}