X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=resources%2Fjs%2Fcomponents%2Fevents%2FDetail.js;h=65895482d320dd6b1ca07b740794e0435cc2b2ce;hb=3544909490592e8c2387f3347ee5e12a8c0414be;hp=d530006b7800e48cf082a9d6c0483605e62712c3;hpb=1d950b14a85fd9eae8795f368ec274c90cb6efd4;p=alttp.git diff --git a/resources/js/components/events/Detail.js b/resources/js/components/events/Detail.js index d530006..6589548 100644 --- a/resources/js/components/events/Detail.js +++ b/resources/js/components/events/Detail.js @@ -1,10 +1,11 @@ import PropTypes from 'prop-types'; import React from 'react'; -import { Button } from 'react-bootstrap'; +import { Alert, Button } from 'react-bootstrap'; import { useTranslation } from 'react-i18next'; import Icon from '../common/Icon'; import RawHTML from '../common/RawHTML'; +import { hasConcluded } from '../../helpers/Event'; import { getTranslation } from '../../helpers/Technique'; import i18n from '../../i18n'; @@ -32,6 +33,11 @@ const Detail = ({ actions, event }) => { {event.description ? : null} + {hasConcluded(event) ? + + {t('events.concluded')} + + : null} ; }; @@ -42,6 +48,7 @@ Detail.propTypes = { event: PropTypes.shape({ description: PropTypes.shape({ }), + end: PropTypes.string, title: PropTypes.string, }), };