Skip to content

Commit

Permalink
forgot percentage width on other alert returns
Browse files Browse the repository at this point in the history
  • Loading branch information
MariaBonde committed Dec 5, 2024
1 parent 632f625 commit 38496f1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions frontend/src/components/Staffing/ConsultantRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ export default function ConsultantRows({
.map((e) => e.bookingDetails.endDateAgreement);

if (dates.some((e) => e === null)) {
return <AlertCircle color="red" size={20} className="w-2/12" />;
return <AlertCircle color="red" size={20} className="w-1/12" />;
} else if (dates.length > 0) {
const newestDate = dates.reduce((a, b) => {
return new Date(a as string) < new Date(b as string) ? a : b;
Expand All @@ -170,12 +170,12 @@ export default function ConsultantRows({
const now = DateTime.now();
const endDate = DateTime.fromISO(newestDate as string);
if (endDate < now) {
return <AlertCircle color="orange" size={20} />;
return <AlertCircle color="orange" size={20} className="w-1/12" />;
} else {
return <CheckCircle color="transparent" size={20} />;
return <CheckCircle color="transparent" size={20} className="w-1/12" />;
}
} else {
return <CheckCircle color="transparent" size={20} />;
return <CheckCircle color="transparent" size={20} className="w-1/12" />;
}
}

Expand Down

0 comments on commit 38496f1

Please sign in to comment.