- ) => (
- {
- isRowDropdownOpen
- ? setIsRowDropdownOpen(null)
- : setIsRowDropdownOpen(migrationWave.id);
- }}
- isExpanded={isRowDropdownOpen === rowIndex}
- >
-
-
- )}
- shouldFocusToggleOnSelect
+
+ {migrationWave.name}
+ |
+
+ {dayjs(migrationWave.startDate)
+ .tz(currentTimezone)
+ .format("MM/DD/YYYY")}
+ |
+
+ {dayjs(migrationWave.endDate)
+ .tz(currentTimezone)
+ .format("MM/DD/YYYY")}
+ |
+
+ {migrationWave?.applications?.length.toString()}
+ |
+
+ {migrationWave.allStakeholders.length}
+ |
+
+ {migrationWave.applications.length
+ ? migrationWave.status
+ : "--"}
+ |
+
+
+ }
+ onClick={() => setWaveModalState(migrationWave)}
+ />
+
+ |
+
setWaveModalState(migrationWave),
- // },
{
isAriaDisabled:
- migrationWave.applications.length === 0,
+ migrationWave.applications?.length < 1,
tooltipProps: {
content:
- migrationWave.applications.length === 0
+ migrationWave.applications?.length < 1
? "No applications are available for assignment."
: "",
},
@@ -512,7 +484,7 @@ export const MigrationWaves: React.FC = () => {
what: t("terms.applications").toLowerCase(),
}),
onClick: () => {
- if (migrationWave.applications.length > 0) {
+ {
setWaveToManageModalState(migrationWave);
}
},
@@ -537,7 +509,6 @@ export const MigrationWaves: React.FC = () => {
title: t("terms.exportToIssue"),
onClick: () => {
if (
- migrationWave.applications?.length > 0 &&
hasExportableApplications(
tickets,
migrationWave?.applications
@@ -561,44 +532,46 @@ export const MigrationWaves: React.FC = () => {
},
]}
/>
-
- |
-
-