forked from p15670423/monkey
Renamed events component
This commit is contained in:
parent
a4a9f0c491
commit
dee006449d
|
@ -5,7 +5,7 @@ import FileSaver from "file-saver";
|
||||||
import * as PropTypes from "prop-types";
|
import * as PropTypes from "prop-types";
|
||||||
import ExportEventsButton from "./ExportEventsButton";
|
import ExportEventsButton from "./ExportEventsButton";
|
||||||
|
|
||||||
export default class EventsAndButtonComponent extends Component {
|
export default class EventsButtonsComponent extends Component {
|
||||||
constructor(props) {
|
constructor(props) {
|
||||||
super(props);
|
super(props);
|
||||||
this.state = {
|
this.state = {
|
||||||
|
@ -26,7 +26,7 @@ export default class EventsAndButtonComponent extends Component {
|
||||||
<div>
|
<div>
|
||||||
<EventsModal events={this.props.events} showEvents={this.state.isShow} hideCallback={this.hide} exportFilename={this.props.exportFilename} />
|
<EventsModal events={this.props.events} showEvents={this.state.isShow} hideCallback={this.hide} exportFilename={this.props.exportFilename} />
|
||||||
<div className="text-center" style={{"display": "grid"}}>
|
<div className="text-center" style={{"display": "grid"}}>
|
||||||
<Button className="btn btn-info" onClick={this.show}>
|
<Button className="btn btn-info btn-lg" onClick={this.show}>
|
||||||
Show Events
|
Show Events
|
||||||
</Button>
|
</Button>
|
||||||
<ExportEventsButton onClick={() => {
|
<ExportEventsButton onClick={() => {
|
||||||
|
@ -41,7 +41,7 @@ export default class EventsAndButtonComponent extends Component {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
EventsAndButtonComponent.propTypes = {
|
EventsButtonsComponent.propTypes = {
|
||||||
events: PropTypes.array,
|
events: PropTypes.array,
|
||||||
exportFilename: PropTypes.string,
|
exportFilename: PropTypes.string,
|
||||||
};
|
};
|
|
@ -4,7 +4,7 @@ import * as PropTypes from "prop-types";
|
||||||
|
|
||||||
export default class ExportEventsButton extends Component {
|
export default class ExportEventsButton extends Component {
|
||||||
render() {
|
render() {
|
||||||
return <Button className="btn btn-primary"
|
return <Button className="btn btn-primary btn-lg"
|
||||||
onClick={this.props.onClick}
|
onClick={this.props.onClick}
|
||||||
>
|
>
|
||||||
Export Events
|
Export Events
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import React, {Component, Fragment} from "react";
|
import React, {Component, Fragment} from "react";
|
||||||
import PillarLabel from "./PillarLabel";
|
import PillarLabel from "./PillarLabel";
|
||||||
import EventsAndButtonComponent from "./EventsAndButtonComponent";
|
import EventsButtonsComponent from "./EventsButtonsComponent";
|
||||||
import {ZeroTrustStatuses} from "./ZeroTrustPillars";
|
import {ZeroTrustStatuses} from "./ZeroTrustPillars";
|
||||||
import {FindingsTable} from "./FindingsTable";
|
import {FindingsTable} from "./FindingsTable";
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@ import StatusLabel from "./StatusLabel";
|
||||||
import PaginatedTable from "../common/PaginatedTable";
|
import PaginatedTable from "../common/PaginatedTable";
|
||||||
import * as PropTypes from "prop-types";
|
import * as PropTypes from "prop-types";
|
||||||
import PillarLabel from "./PillarLabel";
|
import PillarLabel from "./PillarLabel";
|
||||||
import EventsAndButtonComponent from "./EventsAndButtonComponent";
|
import EventsButtonsComponent from "./EventsButtonsComponent";
|
||||||
|
|
||||||
const columns = [
|
const columns = [
|
||||||
{
|
{
|
||||||
|
@ -16,7 +16,7 @@ const columns = [
|
||||||
{
|
{
|
||||||
Header: 'Events', id: "events",
|
Header: 'Events', id: "events",
|
||||||
accessor: x => {
|
accessor: x => {
|
||||||
return <EventsAndButtonComponent events={x.events} exportFilename={"Events_" + x.test_key}/>;
|
return <EventsButtonsComponent events={x.events} exportFilename={"Events_" + x.test_key}/>;
|
||||||
},
|
},
|
||||||
maxWidth: 160,
|
maxWidth: 160,
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue