From d793cc8f85fc1d45b6d98a7ae52fd8e99a885f14 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Tue, 18 Sep 2018 15:41:19 +0300 Subject: LoadingView --- vnext/src/index.js | 23 ++++++++++++++++++++++- vnext/src/views/index.html | 11 ----------- 2 files changed, 22 insertions(+), 12 deletions(-) (limited to 'vnext') diff --git a/vnext/src/index.js b/vnext/src/index.js index 74e36d84..1180d303 100644 --- a/vnext/src/index.js +++ b/vnext/src/index.js @@ -2,9 +2,30 @@ import React from 'react'; import ReactDOM from 'react-dom'; import Loadable from 'react-loadable'; +function LoadingView(props) { + return ( +
+ +
+
+ ); +} + const Juick = Loadable({ loader: () => import('./App'), - loading: () =>
Loading...
+ loading: LoadingView }); const JuickApp = () => ( diff --git a/vnext/src/views/index.html b/vnext/src/views/index.html index f9fb7e72..ba80b464 100644 --- a/vnext/src/views/index.html +++ b/vnext/src/views/index.html @@ -63,17 +63,6 @@ Contacts · TOS -