Commit a055c870 authored by Marek Veselý's avatar Marek Veselý
Browse files

fix: remove duplicate information in trainee team selector

parent 3b4014eb
Loading
Loading
Loading
Loading
+41 −49
Original line number Diff line number Diff line
@@ -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'
@@ -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
@@ -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
@@ -82,7 +76,6 @@ const TeamSelector = () => {
                  teamId={team.id}
                  teamName={team.name}
                  teamRole={team.role}
                    exerciseName={exercise.name}
                />
                <ChevronRight className={Classes.TEXT_MUTED} />
              </Card>
@@ -91,7 +84,6 @@ const TeamSelector = () => {
        </SectionCard>
      ))}
    </Section>
    </Section>
  )
}