Fix: eslint errors
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Dorian Zedler 2022-07-27 10:09:46 +02:00
parent 1f27befc94
commit 8d2c93aa32
Signed by: dorian
GPG key ID: 989DE36109AFA354
3 changed files with 12 additions and 14 deletions

View file

@ -1,5 +1,3 @@
import React from 'react';
import logo from './logo.svg';
import './App.css'; import './App.css';
import Theme from './utils/Theme'; import Theme from './utils/Theme';
import Routing from './utils/Routing'; import Routing from './utils/Routing';

View file

@ -1,4 +1,3 @@
import { FILE } from 'dns';
import { SpeedCompetitionCategoryResult } from '../models/Competition'; import { SpeedCompetitionCategoryResult } from '../models/Competition';
import { Participant } from '../models/Participant'; import { Participant } from '../models/Participant';
@ -115,10 +114,9 @@ export class SpeedFlowchart {
const finalFirstRoundPairs: SpeedRoundPair[] = []; const finalFirstRoundPairs: SpeedRoundPair[] = [];
for (let i = 0; i < finalSortedFirstRoundPairs.length; i++) { for (let i = 0; i < finalSortedFirstRoundPairs.length; i++) {
if (finalSortedFirstRoundPairs[i][0] !== undefined) const [laneA, laneB] = finalSortedFirstRoundPairs[i];
finalFirstRoundPairs.push(finalSortedFirstRoundPairs[i][0]!); if (laneA !== undefined) finalFirstRoundPairs.push(laneA);
if (finalSortedFirstRoundPairs[i][1] !== undefined) if (laneB !== undefined) finalFirstRoundPairs.push(laneB);
finalFirstRoundPairs.push(finalSortedFirstRoundPairs[i][1]!);
} }
// push the first round to all data // push the first round to all data

View file

@ -12,13 +12,15 @@ export default function PageTemplate(props: { children: JSX.Element }) {
return ( return (
<ContextWrapper> <ContextWrapper>
<Container <LocalizationProviderWrapper>
sx={{ marginTop: '50px' }} <Container
className='root-container' sx={{ marginTop: '50px' }}
maxWidth='lg' className='root-container'
> maxWidth='lg'
{children} >
</Container> {children}
</Container>
</LocalizationProviderWrapper>
</ContextWrapper> </ContextWrapper>
); );
} }