From 8086c17a2e5e128c43faaf6a199549b69ddd5be7 Mon Sep 17 00:00:00 2001 From: Jenny <32821331+jenny-s51@users.noreply.github.com> Date: Tue, 8 Oct 2024 15:18:21 -0400 Subject: [PATCH] move fieldset to components --- .../screens/RegisterModel/PrefilledModelRegistryField.tsx | 2 +- .../pages/modelRegistry/screens/RegisterModel/RegisterModel.tsx | 2 +- .../screens/RegisterModel/RegisteredModelSelector.tsx | 2 +- .../screens/RegisterModel/RegistrationCommonFormSections.tsx | 2 +- .../screens/{RegisterModel => components}/FormFieldset.tsx | 0 5 files changed, 4 insertions(+), 4 deletions(-) rename clients/ui/frontend/src/app/pages/modelRegistry/screens/{RegisterModel => components}/FormFieldset.tsx (100%) diff --git a/clients/ui/frontend/src/app/pages/modelRegistry/screens/RegisterModel/PrefilledModelRegistryField.tsx b/clients/ui/frontend/src/app/pages/modelRegistry/screens/RegisterModel/PrefilledModelRegistryField.tsx index fef2b8313..67920a3c5 100644 --- a/clients/ui/frontend/src/app/pages/modelRegistry/screens/RegisterModel/PrefilledModelRegistryField.tsx +++ b/clients/ui/frontend/src/app/pages/modelRegistry/screens/RegisterModel/PrefilledModelRegistryField.tsx @@ -1,6 +1,6 @@ import React from 'react'; import { FormGroup, TextInput } from '@patternfly/react-core'; -import FormFieldset from "./FormFieldset"; +import FormFieldset from "../components/FormFieldset"; type PrefilledModelRegistryFieldProps = { mrName?: string; diff --git a/clients/ui/frontend/src/app/pages/modelRegistry/screens/RegisterModel/RegisterModel.tsx b/clients/ui/frontend/src/app/pages/modelRegistry/screens/RegisterModel/RegisterModel.tsx index 8641834d5..cc834dbe6 100644 --- a/clients/ui/frontend/src/app/pages/modelRegistry/screens/RegisterModel/RegisterModel.tsx +++ b/clients/ui/frontend/src/app/pages/modelRegistry/screens/RegisterModel/RegisterModel.tsx @@ -22,7 +22,7 @@ import { isRegisterModelSubmitDisabled, registerModel } from './utils'; import { useRegistrationCommonState } from './useRegistrationCommonState'; import RegistrationCommonFormSections from './RegistrationCommonFormSections'; import RegistrationFormFooter from './RegistrationFormFooter'; -import FormFieldset from './FormFieldset'; +import FormFieldset from '../components/FormFieldset'; const RegisterModel: React.FC = () => { const { modelRegistry: mrName } = useParams(); diff --git a/clients/ui/frontend/src/app/pages/modelRegistry/screens/RegisterModel/RegisteredModelSelector.tsx b/clients/ui/frontend/src/app/pages/modelRegistry/screens/RegisterModel/RegisteredModelSelector.tsx index d153ea216..63f7a2b82 100644 --- a/clients/ui/frontend/src/app/pages/modelRegistry/screens/RegisterModel/RegisteredModelSelector.tsx +++ b/clients/ui/frontend/src/app/pages/modelRegistry/screens/RegisterModel/RegisteredModelSelector.tsx @@ -2,7 +2,7 @@ import React from 'react'; import { FormGroup, TextInput } from '@patternfly/react-core'; import { TypeaheadSelect, TypeaheadSelectOption } from '@patternfly/react-templates'; import { RegisteredModel } from '~/app/types'; -import FormFieldset from './FormFieldset'; +import FormFieldset from '../components/FormFieldset'; type RegisteredModelSelectorProps = { registeredModels: RegisteredModel[]; diff --git a/clients/ui/frontend/src/app/pages/modelRegistry/screens/RegisterModel/RegistrationCommonFormSections.tsx b/clients/ui/frontend/src/app/pages/modelRegistry/screens/RegisterModel/RegistrationCommonFormSections.tsx index 818044dd8..0cbc89a9a 100644 --- a/clients/ui/frontend/src/app/pages/modelRegistry/screens/RegisterModel/RegistrationCommonFormSections.tsx +++ b/clients/ui/frontend/src/app/pages/modelRegistry/screens/RegisterModel/RegistrationCommonFormSections.tsx @@ -19,7 +19,7 @@ import { UpdateObjectAtPropAndValue } from '~/types'; import FormSection from '~/app/components/pf-overrides/FormSection'; import { ModelVersion } from '~/app/types'; import { ModelLocationType, RegistrationCommonFormData } from './useRegisterModelData'; -import FormFieldset from './FormFieldset'; +import FormFieldset from '../components/FormFieldset'; // import { ConnectionModal } from './ConnectionModal'; type RegistrationCommonFormSectionsProps = { diff --git a/clients/ui/frontend/src/app/pages/modelRegistry/screens/RegisterModel/FormFieldset.tsx b/clients/ui/frontend/src/app/pages/modelRegistry/screens/components/FormFieldset.tsx similarity index 100% rename from clients/ui/frontend/src/app/pages/modelRegistry/screens/RegisterModel/FormFieldset.tsx rename to clients/ui/frontend/src/app/pages/modelRegistry/screens/components/FormFieldset.tsx