Loading frontend/src/logic/TeamSelector/index.tsx +41 −49 Original line number Diff line number Diff line Loading @@ -5,10 +5,9 @@ import { Card, CardList, Classes, Elevation, NonIdealState, Section, SectionCard, SectionCard } from '@blueprintjs/core' import { ChevronRight } from '@blueprintjs/icons' import { css } from '@emotion/css' Loading Loading @@ -44,12 +43,7 @@ const TeamSelector = () => { } return ( <Section title='Trainee Team Selection' rightElement={<Reloader minimal fill />} elevation={Elevation.ONE} > <Section title='Team Selection' rightElement={<Reloader minimal fill />}> <Section title='Trainee Team Selection' rightElement={<Reloader minimal fill />}> {exercises.length === 0 && ( <div style={{ padding: '1rem' }}> <NonIdealState Loading @@ -58,11 +52,11 @@ const TeamSelector = () => { /> </div> )} {exercises.filter(notEmpty).map(exercise => ( {exercises.map(exercise => ( <SectionCard padded key={exercise.id}> <h3 style={{ paddingBottom: '1rem' }} >{`Exercise ${exercise.name}`}</h3> >{`Exercise: ${exercise.name}`}</h3> <CardList bordered> {exercise.teams.map((team: Team) => ( <Card Loading @@ -82,7 +76,6 @@ const TeamSelector = () => { teamId={team.id} teamName={team.name} teamRole={team.role} exerciseName={exercise.name} /> <ChevronRight className={Classes.TEXT_MUTED} /> </Card> Loading @@ -91,7 +84,6 @@ const TeamSelector = () => { </SectionCard> ))} </Section> </Section> ) } Loading Loading
frontend/src/logic/TeamSelector/index.tsx +41 −49 Original line number Diff line number Diff line Loading @@ -5,10 +5,9 @@ import { Card, CardList, Classes, Elevation, NonIdealState, Section, SectionCard, SectionCard } from '@blueprintjs/core' import { ChevronRight } from '@blueprintjs/icons' import { css } from '@emotion/css' Loading Loading @@ -44,12 +43,7 @@ const TeamSelector = () => { } return ( <Section title='Trainee Team Selection' rightElement={<Reloader minimal fill />} elevation={Elevation.ONE} > <Section title='Team Selection' rightElement={<Reloader minimal fill />}> <Section title='Trainee Team Selection' rightElement={<Reloader minimal fill />}> {exercises.length === 0 && ( <div style={{ padding: '1rem' }}> <NonIdealState Loading @@ -58,11 +52,11 @@ const TeamSelector = () => { /> </div> )} {exercises.filter(notEmpty).map(exercise => ( {exercises.map(exercise => ( <SectionCard padded key={exercise.id}> <h3 style={{ paddingBottom: '1rem' }} >{`Exercise ${exercise.name}`}</h3> >{`Exercise: ${exercise.name}`}</h3> <CardList bordered> {exercise.teams.map((team: Team) => ( <Card Loading @@ -82,7 +76,6 @@ const TeamSelector = () => { teamId={team.id} teamName={team.name} teamRole={team.role} exerciseName={exercise.name} /> <ChevronRight className={Classes.TEXT_MUTED} /> </Card> Loading @@ -91,7 +84,6 @@ const TeamSelector = () => { </SectionCard> ))} </Section> </Section> ) } Loading