@@ -2,17 +2,18 @@ import React, { memo, useContext } from 'react';
22
33import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' ;
44import cn from 'classnames' ;
5- import { useSelector } from 'react-redux' ;
5+ // import { useSelector } from 'react-redux';
66
77import i18next from '../../../i18n' ;
88import CustomEventStylesContext from '../../components/CustomEventStylesContext' ;
99import MatchStatesCodes from '../../config/matchStates' ;
10- import { sendMatchGameOver } from '../../middlewares/TournamentAdmin' ;
10+ // import { sendMatchGameOver } from '../../middlewares/TournamentAdmin';
1111
1212function MatchAction ( { match, canModerate, currentUserIsPlayer } ) {
13+ console . log ( canModerate ) ;
1314 const href = `/games/${ match . gameId } ` ;
1415 const hasCustomEventStyles = useContext ( CustomEventStylesContext ) ;
15- const streamMode = useSelector ( state => state . gameUI . streamMode ) ;
16+ // const streamMode = useSelector(state => state.gameUI.streamMode);
1617
1718 const showBtnClassName = cn ( 'btn btn-sm text-nowrap rounded-lg px-3' , {
1819 'btn-primary' : ! hasCustomEventStyles ,
@@ -22,10 +23,10 @@ function MatchAction({ match, canModerate, currentUserIsPlayer }) {
2223 'btn-success text-white' : ! hasCustomEventStyles ,
2324 'cb-custom-event-btn-primary' : hasCustomEventStyles ,
2425 } ) ;
25- const gameOverBtnClassName = cn ( 'btn btn-sm text-nowrap rounded-lg px-3' , {
26- 'btn-outline-danger' : ! hasCustomEventStyles ,
27- 'cb-custom-event-btn-outline-danger' : hasCustomEventStyles ,
28- } ) ;
26+ // const gameOverBtnClassName = cn('btn btn-sm text-nowrap rounded-lg px-3', {
27+ // 'btn-outline-danger': !hasCustomEventStyles,
28+ // 'cb-custom-event-btn-outline-danger': hasCustomEventStyles,
29+ // });
2930
3031 switch ( match . state ) {
3132 case MatchStatesCodes . pending :
0 commit comments