X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;ds=sidebyside;f=resources%2Fjs%2Fcomponents%2Fevents%2FDetail.js;h=65895482d320dd6b1ca07b740794e0435cc2b2ce;hb=4c5a82cb876e96c72c50e8bc12bd8a43a9afe847;hp=d530006b7800e48cf082a9d6c0483605e62712c3;hpb=27802e47533789b87644ddc718ba9d7693424537;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,
}),
};