From 6e5362245826223c8141d50646f3b7368850f924 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Mon, 18 Jun 2018 14:59:29 +0300 Subject: content loader --- vnext/src/components/Feeds.js | 2 +- vnext/src/components/Spinner.js | 21 ++++++++++++++++++--- 2 files changed, 19 insertions(+), 4 deletions(-) (limited to 'vnext/src/components') diff --git a/vnext/src/components/Feeds.js b/vnext/src/components/Feeds.js index d0123016..0c8f46ae 100644 --- a/vnext/src/components/Feeds.js +++ b/vnext/src/components/Feeds.js @@ -60,7 +60,7 @@ class Feed extends React.Component { }); return this.state.msgs.length > 0 ? (
{nodes}
- ) : ; + ) :
; } } diff --git a/vnext/src/components/Spinner.js b/vnext/src/components/Spinner.js index 10a247f9..e3d635f8 100644 --- a/vnext/src/components/Spinner.js +++ b/vnext/src/components/Spinner.js @@ -1,14 +1,29 @@ import React from 'react'; - -import Icon from './Icon'; +import ContentLoader from "react-content-loader"; export default function Spinner(props) { return ( -
+ + + + + + + + ) } const centeredStyle = { + background: '#fff', display: 'flex', justifyContent: 'center', alignItems: 'center' -- cgit v1.2.3