]> git.localhorst.tv Git - alttp.git/blobdiff - resources/js/components/users/Profile.js
show tournament participation in profile
[alttp.git] / resources / js / components / users / Profile.js
index f38ba2f3d8830b8447a3ecbf5b9bfe8802f9446e..10c70dbf92bb4037a8ae2dbc96ab2fae22829c6d 100644 (file)
@@ -5,6 +5,7 @@ import { withTranslation } from 'react-i18next';
 
 import Box from './Box';
 import EditStreamLinkButton from './EditStreamLinkButton';
+import Participation from './Participation';
 import Icon from '../common/Icon';
 import i18n from '../../i18n';
 
@@ -35,11 +36,17 @@ const Profile = ({ user }) => <Container>
                                <EditStreamLinkButton user={user} />
                        </p>
                </Col>
+               <Col md={12}>
+                       <h2>{i18n.t('users.tournaments')}</h2>
+                       <Participation user={user} />
+               </Col>
        </Row>
 </Container>;
 
 Profile.propTypes = {
        user: PropTypes.shape({
+               participation: PropTypes.arrayOf(PropTypes.shape({
+               })),
                stream_link: PropTypes.string,
                username: PropTypes.string,
        }),