From fcc97fe15ed997200718331b9c7441bb9e7cc066 Mon Sep 17 00:00:00 2001 From: Mike Turley Date: Mon, 16 Oct 2023 14:02:09 -0400 Subject: [PATCH] Rename files for active-row to active-item Signed-off-by: Mike Turley --- .../getActiveItemDerivedState.ts} | 2 +- client/src/app/hooks/table-controls/active-item/index.ts | 4 ++++ .../useActiveItemEffects.ts} | 4 ++-- .../useActiveItemPropHelpers.ts} | 6 +++--- .../useActiveItemState.ts} | 0 client/src/app/hooks/table-controls/active-row/index.ts | 4 ---- client/src/app/hooks/table-controls/index.ts | 2 +- client/src/app/hooks/table-controls/types.ts | 2 +- client/src/app/hooks/table-controls/useTableControlProps.ts | 2 +- client/src/app/hooks/table-controls/useTableControlState.ts | 2 +- 10 files changed, 14 insertions(+), 14 deletions(-) rename client/src/app/hooks/table-controls/{active-row/getActiveRowDerivedState.ts => active-item/getActiveItemDerivedState.ts} (95%) create mode 100644 client/src/app/hooks/table-controls/active-item/index.ts rename client/src/app/hooks/table-controls/{active-row/useActiveRowEffects.ts => active-item/useActiveItemEffects.ts} (85%) rename client/src/app/hooks/table-controls/{active-row/useActiveRowPropHelpers.ts => active-item/useActiveItemPropHelpers.ts} (90%) rename client/src/app/hooks/table-controls/{active-row/useActiveRowState.ts => active-item/useActiveItemState.ts} (100%) delete mode 100644 client/src/app/hooks/table-controls/active-row/index.ts diff --git a/client/src/app/hooks/table-controls/active-row/getActiveRowDerivedState.ts b/client/src/app/hooks/table-controls/active-item/getActiveItemDerivedState.ts similarity index 95% rename from client/src/app/hooks/table-controls/active-row/getActiveRowDerivedState.ts rename to client/src/app/hooks/table-controls/active-item/getActiveItemDerivedState.ts index a2240c3c8b..508be877fc 100644 --- a/client/src/app/hooks/table-controls/active-row/getActiveRowDerivedState.ts +++ b/client/src/app/hooks/table-controls/active-item/getActiveItemDerivedState.ts @@ -1,5 +1,5 @@ import { KeyWithValueType } from "@app/utils/type-utils"; -import { IActiveRowState } from "./useActiveRowState"; +import { IActiveRowState } from "./useActiveItemState"; export interface IActiveRowDerivedStateArgs { currentPageItems: TItem[]; diff --git a/client/src/app/hooks/table-controls/active-item/index.ts b/client/src/app/hooks/table-controls/active-item/index.ts new file mode 100644 index 0000000000..afa4d418ff --- /dev/null +++ b/client/src/app/hooks/table-controls/active-item/index.ts @@ -0,0 +1,4 @@ +export * from "./useActiveItemState"; +export * from "./getActiveItemDerivedState"; +export * from "./useActiveItemPropHelpers"; +export * from "./useActiveItemEffects"; diff --git a/client/src/app/hooks/table-controls/active-row/useActiveRowEffects.ts b/client/src/app/hooks/table-controls/active-item/useActiveItemEffects.ts similarity index 85% rename from client/src/app/hooks/table-controls/active-row/useActiveRowEffects.ts rename to client/src/app/hooks/table-controls/active-item/useActiveItemEffects.ts index b9cee730ff..d03c2b8f0f 100644 --- a/client/src/app/hooks/table-controls/active-row/useActiveRowEffects.ts +++ b/client/src/app/hooks/table-controls/active-item/useActiveItemEffects.ts @@ -1,6 +1,6 @@ import * as React from "react"; -import { getActiveRowDerivedState } from "./getActiveRowDerivedState"; -import { IActiveRowState } from "./useActiveRowState"; +import { getActiveRowDerivedState } from "./getActiveItemDerivedState"; +import { IActiveRowState } from "./useActiveItemState"; export interface IUseActiveRowEffectsArgs { isLoading?: boolean; diff --git a/client/src/app/hooks/table-controls/active-row/useActiveRowPropHelpers.ts b/client/src/app/hooks/table-controls/active-item/useActiveItemPropHelpers.ts similarity index 90% rename from client/src/app/hooks/table-controls/active-row/useActiveRowPropHelpers.ts rename to client/src/app/hooks/table-controls/active-item/useActiveItemPropHelpers.ts index 7f5729e1e9..718784f5e2 100644 --- a/client/src/app/hooks/table-controls/active-row/useActiveRowPropHelpers.ts +++ b/client/src/app/hooks/table-controls/active-item/useActiveItemPropHelpers.ts @@ -2,12 +2,12 @@ import { TrProps } from "@patternfly/react-table"; import { IActiveRowDerivedStateArgs, getActiveRowDerivedState, -} from "./getActiveRowDerivedState"; -import { IActiveRowState } from "./useActiveRowState"; +} from "./getActiveItemDerivedState"; +import { IActiveRowState } from "./useActiveItemState"; import { IUseActiveRowEffectsArgs, useActiveRowEffects, -} from "./useActiveRowEffects"; +} from "./useActiveItemEffects"; // Args that should be passed into useTableControlProps export type IActiveRowPropHelpersExternalArgs = diff --git a/client/src/app/hooks/table-controls/active-row/useActiveRowState.ts b/client/src/app/hooks/table-controls/active-item/useActiveItemState.ts similarity index 100% rename from client/src/app/hooks/table-controls/active-row/useActiveRowState.ts rename to client/src/app/hooks/table-controls/active-item/useActiveItemState.ts diff --git a/client/src/app/hooks/table-controls/active-row/index.ts b/client/src/app/hooks/table-controls/active-row/index.ts deleted file mode 100644 index c60b50340d..0000000000 --- a/client/src/app/hooks/table-controls/active-row/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -export * from "./useActiveRowState"; -export * from "./getActiveRowDerivedState"; -export * from "./useActiveRowPropHelpers"; -export * from "./useActiveRowEffects"; diff --git a/client/src/app/hooks/table-controls/index.ts b/client/src/app/hooks/table-controls/index.ts index 4c06b16c9d..9145da1f37 100644 --- a/client/src/app/hooks/table-controls/index.ts +++ b/client/src/app/hooks/table-controls/index.ts @@ -9,4 +9,4 @@ export * from "./filtering"; export * from "./sorting"; export * from "./pagination"; export * from "./expansion"; -export * from "./active-row"; +export * from "./active-item"; diff --git a/client/src/app/hooks/table-controls/types.ts b/client/src/app/hooks/table-controls/types.ts index 7d5e087506..2f8f5ce989 100644 --- a/client/src/app/hooks/table-controls/types.ts +++ b/client/src/app/hooks/table-controls/types.ts @@ -29,7 +29,7 @@ import { IActiveRowPropHelpersExternalArgs, IActiveRowState, IActiveRowStateArgs, -} from "./active-row"; +} from "./active-item"; import { PaginationProps, ToolbarItemProps, diff --git a/client/src/app/hooks/table-controls/useTableControlProps.ts b/client/src/app/hooks/table-controls/useTableControlProps.ts index 8985f5de90..f6fb2dc0fd 100644 --- a/client/src/app/hooks/table-controls/useTableControlProps.ts +++ b/client/src/app/hooks/table-controls/useTableControlProps.ts @@ -6,7 +6,7 @@ import { ITableControls, IUseTableControlPropsArgs } from "./types"; import { useFilterPropHelpers } from "./filtering"; import { useSortPropHelpers } from "./sorting"; import { usePaginationPropHelpers } from "./pagination"; -import { useActiveRowPropHelpers } from "./active-row"; +import { useActiveRowPropHelpers } from "./active-item"; import { useExpansionPropHelpers } from "./expansion"; import { handlePropagatedRowClick } from "./utils"; diff --git a/client/src/app/hooks/table-controls/useTableControlState.ts b/client/src/app/hooks/table-controls/useTableControlState.ts index 7f873571a1..1f8554f59f 100644 --- a/client/src/app/hooks/table-controls/useTableControlState.ts +++ b/client/src/app/hooks/table-controls/useTableControlState.ts @@ -7,7 +7,7 @@ import { import { useFilterState } from "./filtering"; import { useSortState } from "./sorting"; import { usePaginationState } from "./pagination"; -import { useActiveRowState } from "./active-row"; +import { useActiveRowState } from "./active-item"; import { useExpansionState } from "./expansion"; export const useTableControlState = <