current assignment team focus on candidate list

This commit is contained in:
memeriau 2022-04-18 13:47:16 +02:00
parent 84477469a8
commit 11f6c36b16
2 changed files with 7 additions and 0 deletions

View File

@ -81,6 +81,7 @@ const TeamWithCandidates: FC<Props> = ({ teamId }): JSX.Element | null => {
</span> </span>
{teamWishes.map((teamWish) => { {teamWishes.map((teamWish) => {
const active = teamWish.id === team const active = teamWish.id === team
const current = teamWish.id === teamId
return ( return (
<button <button
key={teamWish.id} key={teamWish.id}
@ -88,6 +89,7 @@ const TeamWithCandidates: FC<Props> = ({ teamId }): JSX.Element | null => {
onClick={() => onTeamSelected({ id, team }, teamWish.id)} onClick={() => onTeamSelected({ id, team }, teamWish.id)}
className={classnames( className={classnames(
styles.teamWishButton, styles.teamWishButton,
current && styles.teamCurrent,
active && styles.teamActive active && styles.teamActive
)} )}
> >

View File

@ -30,6 +30,11 @@
.teamWishButton { .teamWishButton {
margin: 0 2px; margin: 0 2px;
padding: 2px; padding: 2px;
color: $color-grey-dark;
&.teamCurrent {
color: $color-black;
}
&.teamActive { &.teamActive {
font-weight: bold; font-weight: bold;