mirror of
https://github.com/Paris-est-Ludique/intranet.git
synced 2025-06-09 17:14:21 +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 }) => (
|
const VolunteerEmail: FC<VolunteerEmailProps> = withUserRole(ROLES.TEAMLEAD, ({ email }) => (
|
||||||
<td className={styles.volunteerEmail}>{email}</td>
|
<td> {email}</td>
|
||||||
))
|
))
|
||||||
|
|
||||||
type DaysAvailabilityProps = {
|
type DaysAvailabilityProps = {
|
||||||
@ -69,16 +69,16 @@ const TeamMembers: FC<Props> = ({ teamId }): JSX.Element => {
|
|||||||
if (volunteers.length === 0) return <div />
|
if (volunteers.length === 0) return <div />
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<table className={styles.volunteers}>
|
<table>
|
||||||
<tr>
|
<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}>S ({volunteers.filter(hasDay("S")).length})</th>
|
||||||
<th className={styles.dayTitle}>D ({volunteers.filter(hasDay("D")).length})</th>
|
<th className={styles.dayTitle}>D ({volunteers.filter(hasDay("D")).length})</th>
|
||||||
<th>@</th>
|
<th>@</th>
|
||||||
</tr>
|
</tr>
|
||||||
{volunteers.map((volunteer) => (
|
{volunteers.map((volunteer) => (
|
||||||
<tr key={volunteer.id}>
|
<tr key={volunteer.id}>
|
||||||
<td className={styles.volunteerName}>
|
<td>
|
||||||
{volunteer.firstname} {volunteer.lastname}
|
{volunteer.firstname} {volunteer.lastname}
|
||||||
</td>
|
</td>
|
||||||
<DaysAvailability volunteer={volunteer} />
|
<DaysAvailability volunteer={volunteer} />
|
||||||
|
@ -1,14 +1,5 @@
|
|||||||
@import "../../theme/variables";
|
@import "../../theme/variables";
|
||||||
@import "../../theme/mixins";
|
@import "../../theme/mixins";
|
||||||
.volunteers {
|
|
||||||
//display: grid;
|
|
||||||
grid-template-columns: minmax(min-content, 5fr) min-content min-content;
|
|
||||||
}
|
|
||||||
|
|
||||||
.volunteerName {
|
|
||||||
grid-column: first;
|
|
||||||
}
|
|
||||||
|
|
||||||
.day {
|
.day {
|
||||||
background-color: $color-red;
|
background-color: $color-red;
|
||||||
&.unknown {
|
&.unknown {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user