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 Theme from './utils/Theme';
import Routing from './utils/Routing';

View file

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

View file

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