Skip to content

Commit e93d196

Browse files
committed
Changes after review
Signed-off-by: Maayan Hadasi <[email protected]>
1 parent c578186 commit e93d196

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

client/src/app/pages/migration-waves/migration-waves.tsx

+6-10
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,6 @@ import { NotificationsContext } from "@app/components/NotificationsContext";
5858
import { getAxiosErrorMessage } from "@app/utils/utils";
5959
import { useFetchTrackers } from "@app/queries/trackers";
6060
import { useFetchApplications } from "@app/queries/applications";
61-
import { WaveStakeholdersTable } from "./components/stakeholders-table";
62-
import { WaveApplicationsTable } from "./components/wave-applications-table";
63-
import { WaveStatusTable } from "./components/wave-status-table";
6461
import { WaveForm } from "./components/migration-wave-form";
6562
import { ManageApplicationsForm } from "./components/manage-applications-form";
6663
import { deleteMigrationWave } from "@app/api/rest";
@@ -72,6 +69,9 @@ import { toRefs } from "@app/utils/model-utils";
7269
import { useFetchTickets } from "@app/queries/tickets";
7370
import { isInClosedRange } from "@app/components/FilterToolbar/dateUtils";
7471
import { PencilAltIcon } from "@patternfly/react-icons";
72+
import { WaveApplicationsTable } from "./components/wave-applications-table";
73+
import { WaveStakeholdersTable } from "./components/stakeholders-table";
74+
import { WaveStatusTable } from "./components/wave-status-table";
7575

7676
export const MigrationWaves: React.FC = () => {
7777
const { t } = useTranslation();
@@ -86,9 +86,6 @@ export const MigrationWaves: React.FC = () => {
8686

8787
const [isToolbarKebabOpen, setIsToolbarKebabOpen] =
8888
React.useState<boolean>(false);
89-
const [isRowDropdownOpen, setIsRowDropdownOpen] = React.useState<
90-
number | null
91-
>(null);
9289

9390
const [migrationWaveModalState, setWaveModalState] = React.useState<
9491
"create" | MigrationWave | null
@@ -390,7 +387,7 @@ export const MigrationWaves: React.FC = () => {
390387
}
391388
numRenderedColumns={numRenderedColumns}
392389
>
393-
{currentPageItems?.map((migrationWave, rowIndex) => {
390+
{currentPageItems?.map((migrationWave, rowIndex) => (
394391
<Tbody
395392
key={migrationWave.id}
396393
isExpanded={isCellExpanded(migrationWave)}
@@ -468,7 +465,6 @@ export const MigrationWaves: React.FC = () => {
468465
</Td>
469466
<Td isActionCell id="row-actions">
470467
<ActionsColumn
471-
open={isRowDropdownOpen === migrationWave.id}
472468
items={[
473469
{
474470
isAriaDisabled:
@@ -566,8 +562,8 @@ export const MigrationWaves: React.FC = () => {
566562
</Td>
567563
</Tr>
568564
) : null}
569-
</Tbody>;
570-
})}
565+
</Tbody>
566+
))}
571567
</ConditionalTableBody>
572568
</Table>
573569
<SimplePagination

0 commit comments

Comments
 (0)