From 2826262b352f9d5e5133751aab356311f72f1442 Mon Sep 17 00:00:00 2001 From: frab1t <33671357+frab1t@users.noreply.github.com> Date: Wed, 8 May 2019 16:18:01 +0200 Subject: [PATCH] add Table component --- src/components/Table.js | 71 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 src/components/Table.js diff --git a/src/components/Table.js b/src/components/Table.js new file mode 100644 index 0000000..1ea23bb --- /dev/null +++ b/src/components/Table.js @@ -0,0 +1,71 @@ +import React, { Component } from 'react'; +import { + Col, + Row, + Table as TableBootstrap +} from 'reactstrap'; + +import './Table.css' + +class Table extends Component { + constructor(props) { + super(props); + + this.state = {}; + } + + render() { + let data = this.props.data; + + return ( + + + + + + Ticket Info + + + + + id + {data.id} + + + status + {data.status} + + + created + {data.createdAt} + + + + updated + {data.updateAt} + + + created by +

{`${data.firstName} ${data.lastName} (${data.email})`}

+ + + type + {data.type} + + + subject + {data.subject} + + + message + {data.message} + + +
+ +
+ ); + } +} + +export default Table; \ No newline at end of file