From d5b8f0ffbbde5fb8d41c3abb4b0969b962746b52 Mon Sep 17 00:00:00 2001
From: jloup <jloup@jloup.work>
Date: Sun, 13 May 2018 23:04:56 +0200
Subject: JS factorization + clean.

---
 cmd/web/js/poloniex.jsx | 20 +-------------------
 1 file changed, 1 insertion(+), 19 deletions(-)

(limited to 'cmd/web/js/poloniex.jsx')

diff --git a/cmd/web/js/poloniex.jsx b/cmd/web/js/poloniex.jsx
index b28bc26..5c374c3 100644
--- a/cmd/web/js/poloniex.jsx
+++ b/cmd/web/js/poloniex.jsx
@@ -1,6 +1,7 @@
 import Api from './api.js';
 import React from 'react';
 import {PFBalance, Assets} from './balance.js';
+import Panel from './panel.js';
 
 class PoloniexController extends React.Component {
   constructor(props) {
@@ -74,25 +75,6 @@ class PoloniexController extends React.Component {
   }
 }
 
-class Panel extends React.Component {
-  render = () => {
-    if (this.props.component === null) {
-      return <div></div>;
-    }
-
-    return (
-      <div className="row">
-        <div className="box col-12">
-          <div className="row">
-            <div className="col-4">{this.props.title}</div>
-          </div>
-          <hr/>
-          {this.props.component}
-        </div>
-      </div>);
-  }
-}
-
 class PoloniexBalance extends React.Component {
 
   render = () => {
-- 
cgit v1.2.3

