From d31dde7436b0d5eceeae8cd3000daa4d99b49606 Mon Sep 17 00:00:00 2001 From: Colin Megill Date: Mon, 16 Oct 2017 10:55:19 -0700 Subject: [PATCH] add loading state for cells to ui --- src/components/app.js | 13 +++++++++++-- src/reducers/cells.js | 2 ++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/src/components/app.js b/src/components/app.js index c43320d1..405342cf 100644 --- a/src/components/app.js +++ b/src/components/app.js @@ -4,6 +4,7 @@ import Helmet from "react-helmet"; import Container from "./framework/container"; import buttonStyles from "./framework/buttons.css"; import { connect } from "react-redux"; +import PulseLoader from "halogen/PulseLoader"; import Categorical from "./categorical/categorical"; import Continuous from "./continuous/continuous"; @@ -16,7 +17,7 @@ import SectionHeader from "./framework/sectionHeader"; @connect((state) => { return { - + cells: state.cells } }) class Home extends React.Component { @@ -71,9 +72,17 @@ class Home extends React.Component { return ( + { + this.props.cells.loading ? +
+ + loading cells +
: + null + } + {this.props.cells.error ? "Error loading cells" : null} {false ? : ""} -