mirror of
https://github.com/Paris-est-Ludique/intranet.git
synced 2025-06-08 08:34:20 +02:00
refactor(#20): ♻️ Removing unused code
This commit is contained in:
parent
6654aac4f5
commit
9daa155155
@ -33,7 +33,7 @@ type VolunteerEmailProps = {
|
||||
}
|
||||
|
||||
const VolunteerEmail: FC<VolunteerEmailProps> = withUserRole(ROLES.TEAMLEAD, ({ email }) => (
|
||||
<td className={styles.volunteerEmail}>{email}</td>
|
||||
<td> {email}</td>
|
||||
))
|
||||
|
||||
type DaysAvailabilityProps = {
|
||||
@ -69,16 +69,16 @@ const TeamMembers: FC<Props> = ({ teamId }): JSX.Element => {
|
||||
if (volunteers.length === 0) return <div />
|
||||
|
||||
return (
|
||||
<table className={styles.volunteers}>
|
||||
<table>
|
||||
<tr>
|
||||
<th className={styles.volunteerName}>Volontaires</th>
|
||||
<th>Volontaires</th>
|
||||
<th className={styles.dayTitle}>S ({volunteers.filter(hasDay("S")).length})</th>
|
||||
<th className={styles.dayTitle}>D ({volunteers.filter(hasDay("D")).length})</th>
|
||||
<th>@</th>
|
||||
</tr>
|
||||
{volunteers.map((volunteer) => (
|
||||
<tr key={volunteer.id}>
|
||||
<td className={styles.volunteerName}>
|
||||
<td>
|
||||
{volunteer.firstname} {volunteer.lastname}
|
||||
</td>
|
||||
<DaysAvailability volunteer={volunteer} />
|
||||
|
@ -1,14 +1,5 @@
|
||||
@import "../../theme/variables";
|
||||
@import "../../theme/mixins";
|
||||
.volunteers {
|
||||
//display: grid;
|
||||
grid-template-columns: minmax(min-content, 5fr) min-content min-content;
|
||||
}
|
||||
|
||||
.volunteerName {
|
||||
grid-column: first;
|
||||
}
|
||||
|
||||
.day {
|
||||
background-color: $color-red;
|
||||
&.unknown {
|
||||
|
Loading…
x
Reference in New Issue
Block a user