mirror of
https://github.com/Paris-est-Ludique/intranet.git
synced 2025-06-08 08:34:20 +02:00
current assignment team focus on candidate list
This commit is contained in:
parent
84477469a8
commit
11f6c36b16
@ -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
|
||||
)}
|
||||
>
|
||||
|
@ -30,6 +30,11 @@
|
||||
.teamWishButton {
|
||||
margin: 0 2px;
|
||||
padding: 2px;
|
||||
color: $color-grey-dark;
|
||||
|
||||
&.teamCurrent {
|
||||
color: $color-black;
|
||||
}
|
||||
|
||||
&.teamActive {
|
||||
font-weight: bold;
|
||||
|
Loading…
x
Reference in New Issue
Block a user