Browse Source

update index form name

tumao 4 years ago
parent
commit
510c311d31

+ 3 - 3
client/src/pages/structure/Create.tsx

@@ -10,7 +10,7 @@ import {
 import { useFormValidation } from '../../hooks/Form';
 import { useFormValidation } from '../../hooks/Form';
 import { formatForm, getMetricOptions } from '../../utils/Form';
 import { formatForm, getMetricOptions } from '../../utils/Form';
 import { DataType } from '../collections/Types';
 import { DataType } from '../collections/Types';
-import CreateStepTwo from './CreateStepTwo';
+import CreateForm from './CreateForm';
 import { IndexType, ParamPair } from './Types';
 import { IndexType, ParamPair } from './Types';
 
 
 const CreateIndex = (props: {
 const CreateIndex = (props: {
@@ -143,7 +143,7 @@ const CreateIndex = (props: {
       handleConfirm={handleCreateIndex}
       handleConfirm={handleCreateIndex}
       confirmDisabled={disabled}
       confirmDisabled={disabled}
     >
     >
-      <CreateStepTwo
+      <CreateForm
         updateForm={updateStepTwoForm}
         updateForm={updateStepTwoForm}
         metricOptions={metricOptions}
         metricOptions={metricOptions}
         indexOptions={indexOptions}
         indexOptions={indexOptions}
@@ -152,7 +152,7 @@ const CreateIndex = (props: {
         validation={validation}
         validation={validation}
         indexParams={indexCreateParams}
         indexParams={indexCreateParams}
         indexTypeChange={onIndexTypeChange}
         indexTypeChange={onIndexTypeChange}
-      ></CreateStepTwo>
+      />
     </DialogTemplate>
     </DialogTemplate>
   );
   );
 };
 };

+ 2 - 2
client/src/pages/structure/CreateStepTwo.tsx → client/src/pages/structure/CreateForm.tsx

@@ -24,7 +24,7 @@ const useStyles = makeStyles((theme: Theme) => ({
   },
   },
 }));
 }));
 
 
-const CreateStepTwo = (
+const CreateForm = (
   props: FormHelperType & {
   props: FormHelperType & {
     metricOptions: Option[];
     metricOptions: Option[];
     indexOptions: Option[];
     indexOptions: Option[];
@@ -200,4 +200,4 @@ const CreateStepTwo = (
     </div>
     </div>
   );
   );
 };
 };
-export default CreateStepTwo;
+export default CreateForm;