@@ -18,15 +18,16 @@ import { MdOutlineAutoFixHigh } from 'react-icons/md';
1818import { SWRResponse } from 'swr' ;
1919
2020import { BracketDisplaySettings } from '../../interfaces/brackets' ;
21- import { RoundInterface } from '../../interfaces/round' ;
21+ import { Round } from '../../interfaces/round' ;
2222import { StageItemWithRounds } from '../../interfaces/stage_item' ;
23- import { Tournament , TournamentMinimal } from '../../interfaces/tournament' ;
23+ import { TournamentMinimal } from '../../interfaces/tournament' ;
24+ import { Tournament } from '../../openapi' ;
2425import { createRound } from '../../services/round' ;
2526import ActivateNextRoundModal from '../modals/activate_next_round_modal' ;
2627import { NoContent } from '../no_content/empty_table_info' ;
2728import { Translator } from '../utils/types' ;
2829import { responseIsValid } from '../utils/util' ;
29- import Round from './round' ;
30+ import RoundComponent from './round' ;
3031
3132function AddRoundButton ( {
3233 t,
@@ -86,12 +87,9 @@ export function RoundsGridCols({
8687
8788 let result : React . JSX . Element [ ] | React . JSX . Element = stageItem . rounds
8889 . sort ( ( r1 : any , r2 : any ) => ( r1 . name > r2 . name ? 1 : - 1 ) )
89- . filter (
90- ( round : RoundInterface ) =>
91- round . matches . length > 0 || displaySettings . matchVisibility === 'all'
92- )
93- . map ( ( round : RoundInterface ) => (
94- < Round
90+ . filter ( ( round : Round ) => round . matches . length > 0 || displaySettings . matchVisibility === 'all' )
91+ . map ( ( round : Round ) => (
92+ < RoundComponent
9593 key = { round . id }
9694 tournamentData = { tournamentData }
9795 round = { round }
0 commit comments