From 5e2f7b4974c9c55bbe802126ece23b21f71e8988 Mon Sep 17 00:00:00 2001 From: Tsu-ba-me Date: Wed, 1 Mar 2023 22:37:01 -0500 Subject: [PATCH] fix(striker-ui): allow UPS type selection in EditUpsInputGroup --- .../components/ManageUps/EditUpsInputGroup.tsx | 13 +++++++++---- striker-ui/types/EditUpsInputGroup.d.ts | 4 +++- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/striker-ui/components/ManageUps/EditUpsInputGroup.tsx b/striker-ui/components/ManageUps/EditUpsInputGroup.tsx index a9ab02f7..963b89d9 100644 --- a/striker-ui/components/ManageUps/EditUpsInputGroup.tsx +++ b/striker-ui/components/ManageUps/EditUpsInputGroup.tsx @@ -1,11 +1,14 @@ import { FC, ReactElement, useMemo } from 'react'; -import CommonUpsInputGroup from './CommonUpsInputGroup'; +import AddUpsInputGroup from './AddUpsInputGroup'; import Spinner from '../Spinner'; +const INPUT_ID_UPS_UUID = 'edit-ups-input-ups-uuid'; + const EditUpsInputGroup: FC = ({ loading: isExternalLoading, previous, + upsTemplate, upsUUID, }) => { const content = useMemo( @@ -14,14 +17,16 @@ const EditUpsInputGroup: FC = ({ ) : ( <> - - + + ), - [isExternalLoading, previous, upsUUID], + [isExternalLoading, previous, upsTemplate, upsUUID], ); return content; }; +export { INPUT_ID_UPS_UUID }; + export default EditUpsInputGroup; diff --git a/striker-ui/types/EditUpsInputGroup.d.ts b/striker-ui/types/EditUpsInputGroup.d.ts index 610b4ed8..ebff2166 100644 --- a/striker-ui/types/EditUpsInputGroup.d.ts +++ b/striker-ui/types/EditUpsInputGroup.d.ts @@ -3,4 +3,6 @@ type EditUpsInputGroupOptionalProps = { }; type EditUpsInputGroupProps = EditUpsInputGroupOptionalProps & - Pick & { upsUUID: string }; + Pick & { + upsUUID: string; + };