From 47c421dbfa236062a368fc210f75f00006587b63 Mon Sep 17 00:00:00 2001 From: Fedor Katurov Date: Thu, 7 Nov 2019 16:44:24 +0700 Subject: [PATCH] added preloader to flow --- src/index.html | 99 ++++++++++++++++++++++++++++++++++++----- src/redux/flow/sagas.ts | 2 + 2 files changed, 89 insertions(+), 12 deletions(-) diff --git a/src/index.html b/src/index.html index a2695cef..5835b8ea 100644 --- a/src/index.html +++ b/src/index.html @@ -1,13 +1,88 @@ - + - - - - - - <%= htmlWebpackPlugin.options.title %> - - -
- - + + + + + + + <%= htmlWebpackPlugin.options.title %> + + + + +
+
+ + + +
+
СМИРЕННО
+
ОЖИДАЙТЕ
+
+
+ + + \ No newline at end of file diff --git a/src/redux/flow/sagas.ts b/src/redux/flow/sagas.ts index 370629be..527353d4 100644 --- a/src/redux/flow/sagas.ts +++ b/src/redux/flow/sagas.ts @@ -37,6 +37,8 @@ function* onGetFlow() { yield put(flowSetHeroes(heroes)); yield put(flowSetRecent(recent)); yield put(flowSetUpdated(updated)); + + document.getElementById('main_loader').style.display = 'none'; } function* onSetCellView({ id, flow }: ReturnType) {