]> git.localhorst.tv Git - alttp.git/blob - resources/js/components/results/ReportDialog.js
server calculated scoring
[alttp.git] / resources / js / components / results / ReportDialog.js
1 import PropTypes from 'prop-types';
2 import React from 'react';
3 import { Modal } from 'react-bootstrap';
4 import { withTranslation } from 'react-i18next';
5
6 import ReportForm from './ReportForm';
7 import i18n from '../../i18n';
8
9 const ReportDialog = ({
10         onHide,
11         participant,
12         round,
13         show,
14 }) =>
15 <Modal className="report-dialog" onHide={onHide} show={show}>
16         <Modal.Header closeButton>
17                 <Modal.Title>
18                         {i18n.t('results.report')}
19                 </Modal.Title>
20         </Modal.Header>
21         <ReportForm
22                 onCancel={onHide}
23                 participant={participant}
24                 round={round}
25         />
26 </Modal>;
27
28 ReportDialog.propTypes = {
29         onHide: PropTypes.func,
30         participant: PropTypes.shape({
31         }),
32         round: PropTypes.shape({
33         }),
34         show: PropTypes.bool,
35         tournament: PropTypes.shape({
36         }),
37 };
38
39 export default withTranslation()(ReportDialog);