Skip to content

Commit

Permalink
fix: design fine tuning from the big boss
Browse files Browse the repository at this point in the history
  • Loading branch information
Arnaud AMBROSELLI committed Dec 18, 2023
1 parent dbf5efc commit 5ac9635
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions dashboard/src/components/ActionsCalendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -237,9 +237,15 @@ const ActionsCalendar = ({ actions, isNightSession, columns = ['Heure', 'Nom', '
)}
</div>
<div>
{activeTabIndex === 1 && <div>{renderActionsTable(theDayBeforeActions, subtractOneDay(currentDate))}</div>}
{activeTabIndex === 2 && <div>{renderActionsTable(theCurrentDayActions, currentDate)}</div>}
{activeTabIndex === 3 && <div>{renderActionsTable(theDayAfterActions, addOneDay(currentDate))}</div>}
{activeTabIndex === 1 && (
<div className={!!theDayBeforeActions.length ? 'tw-pb-8' : ''}>{renderActionsTable(theDayBeforeActions, subtractOneDay(currentDate))}</div>
)}
{activeTabIndex === 2 && (
<div className={!!theCurrentDayActions.length ? 'tw-pb-8' : ''}>{renderActionsTable(theCurrentDayActions, currentDate)}</div>
)}
{activeTabIndex === 3 && (
<div className={!!theDayAfterActions.length ? 'tw-pb-8' : ''}>{renderActionsTable(theDayAfterActions, addOneDay(currentDate))}</div>
)}
</div>
</>
);
Expand Down

0 comments on commit 5ac9635

Please sign in to comment.