From 49a2a27e4c03e030db5c78da9b88359c07bb7b26 Mon Sep 17 00:00:00 2001 From: Malaber Date: Mon, 17 Mar 2025 15:26:47 +0100 Subject: [PATCH] Replace "Spiele Ausblenden" with Chevron --- js/components/GroupStage.js | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/js/components/GroupStage.js b/js/components/GroupStage.js index 6cc4f19..cdbdc29 100644 --- a/js/components/GroupStage.js +++ b/js/components/GroupStage.js @@ -4,6 +4,7 @@ import React, {Component} from 'react'; import {getGroup} from '../redux/tournamentApi'; import {notify} from 'react-notify-toast'; import {sortMatchesByPositionAscending} from '../utils/sorting'; +import {FaChevronDown, FaChevronUp} from 'react-icons/fa6'; export default class GroupStage extends Component { constructor(props) { @@ -20,23 +21,27 @@ export default class GroupStage extends Component { return (

Gruppenphase -

- {this.props.groups.map(group => )} + {this.props.groups.map(group => )}
); } } -function ShowMatchesToggleButton(props) { - return (); } - export class Group extends Component { constructor(props) { super(props); @@ -61,8 +66,11 @@ export class Group extends Component { render() { return ( - -

Gruppe {this.state.number}

+ +

+ Gruppe {this.state.number} +

+ {this.state.matches.sort(sortMatchesByPositionAscending()).map((match => (