Browse Source

Add css

hkremer/rebranding
Gregory Rudolph 4 years ago
parent
commit
37837a508c
Signed by: rudi
GPG Key ID: EF64F3CBD1A1EBDD
  1. 8
      src/app.js
  2. 10
      static/app.js

8
src/app.js

@ -1,8 +1,8 @@
function Card(data) { function Card(data) {
return ( return (
<div class="card"> <div className="card">
<h4><b>{data.Username}</b></h4> <h4><b>{data.Username}</b></h4>
<div class="container"> <div className="container">
<p>{data.Closed}</p> <p>{data.Closed}</p>
<p>{data.UserID}</p> <p>{data.UserID}</p>
</div> </div>
@ -27,8 +27,8 @@ class Verification extends React.Component {
return ( return (
<div className="App"> <div className="App">
<ul> <ul>
{this.state.verifications.map((data) => ( {this.state.verifications.map((data, i) => (
<li key={data.UserID}> <Card {...data} /></li> <li key={i}> <Card {...data} /></li>
))} ))}
</ul> </ul>
</div> </div>

10
static/app.js

@ -9,7 +9,7 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
function Card(data) { function Card(data) {
return React.createElement( return React.createElement(
"div", "div",
{ "class": "card" }, { className: "card" },
React.createElement( React.createElement(
"h4", "h4",
null, null,
@ -21,7 +21,7 @@ function Card(data) {
), ),
React.createElement( React.createElement(
"div", "div",
{ "class": "container" }, { className: "container" },
React.createElement( React.createElement(
"p", "p",
null, null,
@ -67,14 +67,14 @@ var Verification = function (_React$Component) {
value: function render() { value: function render() {
return React.createElement( return React.createElement(
"div", "div",
null, { className: "App" },
React.createElement( React.createElement(
"ul", "ul",
null, null,
this.state.verifications.map(function (data) { this.state.verifications.map(function (data, i) {
return React.createElement( return React.createElement(
"li", "li",
{ key: data.UserID }, { key: i },
" ", " ",
React.createElement(Card, data) React.createElement(Card, data)
); );

Loading…
Cancel
Save