From 72672d6bbece3dca3c6fc67eb985f81864f2b220 Mon Sep 17 00:00:00 2001 From: Marliana Lara Date: Thu, 19 Mar 2020 15:49:49 -0400 Subject: [PATCH] Move useSelect to shared util directory --- .../screens/Inventory/InventoryGroupHosts/AssociateModal.jsx | 2 +- .../Inventory/InventoryGroupHosts/InventoryGroupHostList.jsx | 2 +- .../src/{screens/Inventory/shared => util}/useSelect.jsx | 0 .../src/{screens/Inventory/shared => util}/useSelect.test.jsx | 0 4 files changed, 2 insertions(+), 2 deletions(-) rename awx/ui_next/src/{screens/Inventory/shared => util}/useSelect.jsx (100%) rename awx/ui_next/src/{screens/Inventory/shared => util}/useSelect.test.jsx (100%) diff --git a/awx/ui_next/src/screens/Inventory/InventoryGroupHosts/AssociateModal.jsx b/awx/ui_next/src/screens/Inventory/InventoryGroupHosts/AssociateModal.jsx index 1979f4f756..7af059e799 100644 --- a/awx/ui_next/src/screens/Inventory/InventoryGroupHosts/AssociateModal.jsx +++ b/awx/ui_next/src/screens/Inventory/InventoryGroupHosts/AssociateModal.jsx @@ -6,7 +6,7 @@ import { Button, Modal } from '@patternfly/react-core'; import OptionsList from '@components/Lookup/shared/OptionsList'; import useRequest from '@util/useRequest'; import { getQSConfig, parseQueryString } from '@util/qs'; -import useSelect from '../shared/useSelect'; +import useSelect from '@util/useSelect'; const QS_CONFIG = getQSConfig('associate', { page: 1, diff --git a/awx/ui_next/src/screens/Inventory/InventoryGroupHosts/InventoryGroupHostList.jsx b/awx/ui_next/src/screens/Inventory/InventoryGroupHosts/InventoryGroupHostList.jsx index 3f54e49c90..499468d654 100644 --- a/awx/ui_next/src/screens/Inventory/InventoryGroupHosts/InventoryGroupHostList.jsx +++ b/awx/ui_next/src/screens/Inventory/InventoryGroupHosts/InventoryGroupHostList.jsx @@ -9,6 +9,7 @@ import useRequest, { useDeleteItems, useDismissableError, } from '@util/useRequest'; +import useSelect from '@util/useSelect'; import AlertModal from '@components/AlertModal'; import DataListToolbar from '@components/DataListToolbar'; import ErrorDetail from '@components/ErrorDetail'; @@ -17,7 +18,6 @@ import InventoryGroupHostListItem from './InventoryGroupHostListItem'; import AssociateModal from './AssociateModal'; import AddHostDropdown from './AddHostDropdown'; import DisassociateButton from './DisassociateButton'; -import useSelect from '../shared/useSelect'; const QS_CONFIG = getQSConfig('host', { page: 1, diff --git a/awx/ui_next/src/screens/Inventory/shared/useSelect.jsx b/awx/ui_next/src/util/useSelect.jsx similarity index 100% rename from awx/ui_next/src/screens/Inventory/shared/useSelect.jsx rename to awx/ui_next/src/util/useSelect.jsx diff --git a/awx/ui_next/src/screens/Inventory/shared/useSelect.test.jsx b/awx/ui_next/src/util/useSelect.test.jsx similarity index 100% rename from awx/ui_next/src/screens/Inventory/shared/useSelect.test.jsx rename to awx/ui_next/src/util/useSelect.test.jsx