Skip to content

Commit

Permalink
Rename files for active-row to active-item
Browse files Browse the repository at this point in the history
Signed-off-by: Mike Turley <[email protected]>
  • Loading branch information
mturley committed Oct 16, 2023
1 parent 9722644 commit fcc97fe
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { KeyWithValueType } from "@app/utils/type-utils";
import { IActiveRowState } from "./useActiveRowState";
import { IActiveRowState } from "./useActiveItemState";

export interface IActiveRowDerivedStateArgs<TItem> {
currentPageItems: TItem[];
Expand Down
4 changes: 4 additions & 0 deletions client/src/app/hooks/table-controls/active-item/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export * from "./useActiveItemState";
export * from "./getActiveItemDerivedState";
export * from "./useActiveItemPropHelpers";
export * from "./useActiveItemEffects";
Original file line number Diff line number Diff line change
@@ -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<TItem> {
isLoading?: boolean;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<TItem> =
Expand Down
4 changes: 0 additions & 4 deletions client/src/app/hooks/table-controls/active-row/index.ts

This file was deleted.

2 changes: 1 addition & 1 deletion client/src/app/hooks/table-controls/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ export * from "./filtering";
export * from "./sorting";
export * from "./pagination";
export * from "./expansion";
export * from "./active-row";
export * from "./active-item";
2 changes: 1 addition & 1 deletion client/src/app/hooks/table-controls/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import {
IActiveRowPropHelpersExternalArgs,
IActiveRowState,
IActiveRowStateArgs,
} from "./active-row";
} from "./active-item";
import {
PaginationProps,
ToolbarItemProps,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 = <
Expand Down

0 comments on commit fcc97fe

Please sign in to comment.