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

View File

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