mirror of
https://github.com/Paris-est-Ludique/intranet.git
synced 2025-06-09 17:14:21 +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>
|
</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
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
|
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user