Compare commits

...

3 Commits

Author SHA1 Message Date
d738049742 Removed unused imports 2021-01-26 21:02:30 -05:00
b627aedf90 Removed test stuff 2021-01-24 17:56:10 -05:00
6f4981699e Moved domain to start of column 2021-01-24 17:55:40 -05:00
3 changed files with 8 additions and 10 deletions

View File

@ -1,6 +1,5 @@
import React, { Component } from "react"; import React, { Component } from "react";
import ReportSingleMigration from "../common/Forms/ReportSingleMigration";
import { callAPI } from "../../actions/API"; import { callAPI } from "../../actions/API";
import { GenericForm } from "../common/Forms/GenericForm"; import { GenericForm } from "../common/Forms/GenericForm";

View File

@ -11,7 +11,6 @@ import {
import classnames from "classnames"; import classnames from "classnames";
import EmailBooking from "./EmailBooking"; import EmailBooking from "./EmailBooking";
import { CPanelForm } from "./CPanelForm";
import { GenericForm } from "./GenericForm"; import { GenericForm } from "./GenericForm";
const FormPage = ({ timeslots, item }) => { const FormPage = ({ timeslots, item }) => {
@ -53,7 +52,7 @@ const FormPage = ({ timeslots, item }) => {
<Row> <Row>
<Col> <Col>
{/* <CPanelForm timeslots={timeslots} key={timeslots.id} /> */} {/* <CPanelForm timeslots={timeslots} key={timeslots.id} /> */}
<GenericForm timeslots={timeslots} key={timeslots.id}/> <GenericForm timeslots={timeslots} key={timeslots.id} />
</Col> </Col>
</Row> </Row>
</TabPane> </TabPane>

View File

@ -77,7 +77,13 @@ const CompTable = (props) => {
sizePerPageRenderer, // A numeric array is also available. the purpose of above example is custom the text sizePerPageRenderer, // A numeric array is also available. the purpose of above example is custom the text
}; };
const columns = [ let columns = [
{
dataField: "domain",
text: "Domain",
sort: true,
formatter: (cell, row) => <a href={"migrations/" + row.id}> {cell} </a>,
},
{ dataField: "id", text: "ID", hidden: true }, { dataField: "id", text: "ID", hidden: true },
{ dataField: "brand", text: "Brand", sort: true }, { dataField: "brand", text: "Brand", sort: true },
{ dataField: "migration_status", text: "Status", sort: true }, { dataField: "migration_status", text: "Status", sort: true },
@ -108,12 +114,6 @@ const CompTable = (props) => {
}, },
{ dataField: "booked_date", text: "Booked Date", sort: true }, { dataField: "booked_date", text: "Booked Date", sort: true },
{ dataField: "agent_booked", text: "Agent initials", sort: true }, { dataField: "agent_booked", text: "Agent initials", sort: true },
{
dataField: "domain",
text: "Domain",
sort: true,
formatter: (cell, row) => <a href={"migrations/" + row.id}> {cell} </a>,
},
{ dataField: "additional_domains", text: "Additional Domains", sort: true }, { dataField: "additional_domains", text: "Additional Domains", sort: true },
{ dataField: "username", text: "Username", sort: true }, { dataField: "username", text: "Username", sort: true },
{ dataField: "migration_type", text: "Type", sort: true }, { dataField: "migration_type", text: "Type", sort: true },