Skip to content

Commit

Permalink
Changes after review
Browse files Browse the repository at this point in the history
Signed-off-by: Maayan Hadasi <[email protected]>
  • Loading branch information
mguetta1 committed Nov 19, 2024
1 parent c578186 commit e93d196
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions client/src/app/pages/migration-waves/migration-waves.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,6 @@ import { NotificationsContext } from "@app/components/NotificationsContext";
import { getAxiosErrorMessage } from "@app/utils/utils";
import { useFetchTrackers } from "@app/queries/trackers";
import { useFetchApplications } from "@app/queries/applications";
import { WaveStakeholdersTable } from "./components/stakeholders-table";
import { WaveApplicationsTable } from "./components/wave-applications-table";
import { WaveStatusTable } from "./components/wave-status-table";
import { WaveForm } from "./components/migration-wave-form";
import { ManageApplicationsForm } from "./components/manage-applications-form";
import { deleteMigrationWave } from "@app/api/rest";
Expand All @@ -72,6 +69,9 @@ import { toRefs } from "@app/utils/model-utils";
import { useFetchTickets } from "@app/queries/tickets";
import { isInClosedRange } from "@app/components/FilterToolbar/dateUtils";
import { PencilAltIcon } from "@patternfly/react-icons";
import { WaveApplicationsTable } from "./components/wave-applications-table";
import { WaveStakeholdersTable } from "./components/stakeholders-table";
import { WaveStatusTable } from "./components/wave-status-table";

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

const [isToolbarKebabOpen, setIsToolbarKebabOpen] =
React.useState<boolean>(false);
const [isRowDropdownOpen, setIsRowDropdownOpen] = React.useState<
number | null
>(null);

const [migrationWaveModalState, setWaveModalState] = React.useState<
"create" | MigrationWave | null
Expand Down Expand Up @@ -390,7 +387,7 @@ export const MigrationWaves: React.FC = () => {
}
numRenderedColumns={numRenderedColumns}
>
{currentPageItems?.map((migrationWave, rowIndex) => {
{currentPageItems?.map((migrationWave, rowIndex) => (
<Tbody
key={migrationWave.id}
isExpanded={isCellExpanded(migrationWave)}
Expand Down Expand Up @@ -468,7 +465,6 @@ export const MigrationWaves: React.FC = () => {
</Td>
<Td isActionCell id="row-actions">
<ActionsColumn
open={isRowDropdownOpen === migrationWave.id}
items={[
{
isAriaDisabled:
Expand Down Expand Up @@ -566,8 +562,8 @@ export const MigrationWaves: React.FC = () => {
</Td>
</Tr>
) : null}
</Tbody>;
})}
</Tbody>
))}
</ConditionalTableBody>
</Table>
<SimplePagination
Expand Down

0 comments on commit e93d196

Please sign in to comment.