Removed redundant CSS containers and styling

This commit is contained in:
pepper 2021-01-20 00:01:34 -05:00
parent 85b4afd835
commit 9d499eb986

View File

@ -1,6 +1,6 @@
import React, { Component } from "react"; import React, { Component } from "react";
import CompTable from "../common/Tables/CompTable"; import CompTable from "../common/Tables/CompTable";
import { callAPI } from "../../actions/API" import { callAPI } from "../../actions/API";
import { Error } from "../../actions/Error"; import { Error } from "../../actions/Error";
// Missing parent page, // Missing parent page,
@ -18,9 +18,10 @@ class GenericList extends Component {
} }
renderItems() { renderItems() {
console.log(this.props.APILINK)
if (!this.state.error) { if (!this.state.error) {
return <CompTable data={callAPI(this.props.APILINK)} />; return (
<CompTable data={callAPI(this.props.APILINK)} key={this.state.error} />
);
} else { } else {
console.log("error"); console.log("error");
return <Error />; return <Error />;
@ -28,19 +29,7 @@ class GenericList extends Component {
} }
render() { render() {
return ( return <div>{this.renderItems()}</div>;
<div className="row">
<div className="divider"></div>
<div className="section">
<div className="col s12"></div>
</div>
<div className="divider"></div>
<div className="section">
<div className="col s12">{this.renderItems()}</div>
</div>
<div className="divider"></div>
</div>
);
} }
} }