removed idSearchForm
This commit is contained in:
parent
6f0e98298e
commit
94219c4586
@ -1,13 +1,11 @@
|
||||
import React, { Component } from "react";
|
||||
|
||||
import IdSearchForm from "../common/Functionality/IdSearchForm";
|
||||
import ReportSingleMigration from "../common/Forms/ReportSingleMigration";
|
||||
import { callAPI } from "../../actions/API";
|
||||
|
||||
// /migrations in the address bar,
|
||||
// Allows the modification of migrations, and also populating a form
|
||||
// by UUID.
|
||||
// IDSearchForm is the UUID form at the top of the page,
|
||||
// by UUID,
|
||||
// ReportSingleMigration is the actual form, witha PUT API request on that page.
|
||||
|
||||
export default class Migrations extends Component {
|
||||
@ -36,7 +34,6 @@ export default class Migrations extends Component {
|
||||
};
|
||||
return (
|
||||
<div>
|
||||
<IdSearchForm api={onSubmit} />
|
||||
<ReportSingleMigration
|
||||
key={this.state.migs.id}
|
||||
item={this.state.migs}
|
||||
|
||||
@ -1,38 +0,0 @@
|
||||
import React from "react";
|
||||
|
||||
import { FormGroup, Label } from "reactstrap";
|
||||
import { Formik, Form } from "formik";
|
||||
import { Input, Submit } from "formstrap";
|
||||
|
||||
// Needs to be changed, to not use a library,
|
||||
// currently the form populates the fields on migrations, if you
|
||||
// enter a UUID into field,
|
||||
|
||||
export default function IdSearchForm({ api }) {
|
||||
const initialValues = {};
|
||||
|
||||
return (
|
||||
<Formik initialValues={initialValues} onSubmit={api}>
|
||||
{/* <Container>
|
||||
|
||||
<Row>
|
||||
<Col> */}
|
||||
<Form>
|
||||
<FormGroup>
|
||||
<Label for="migrationId"></Label>
|
||||
<Input
|
||||
type="text"
|
||||
name="migrationId"
|
||||
id="migrationId"
|
||||
placeholder="uuid"
|
||||
/>
|
||||
</FormGroup>
|
||||
<Submit withSpinner>Submit</Submit>
|
||||
</Form>
|
||||
{/* </Col>
|
||||
</Row>
|
||||
|
||||
</Container> */}
|
||||
</Formik>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user