From 1a75c748eab389beb2d3e1d994f16c29d3f803c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Geonizeli?= Date: Tue, 31 Aug 2021 00:22:54 -0300 Subject: [PATCH] add loading spinner on PoolListing --- .../src/components/Navbar/Navbar.tsx | 18 ++------ .../src/components/Spinner/Spinner.tsx | 21 +++++++++ .../src/components/Spinner/index.ts | 1 + app/javascript/src/components/index.ts | 1 + app/javascript/src/constants/Pools.ts | 2 + app/javascript/src/pages/Home/PoolListing.tsx | 46 ++++++++++--------- app/javascript/src/utils/notEmpty.ts | 3 ++ 7 files changed, 55 insertions(+), 37 deletions(-) create mode 100644 app/javascript/src/components/Spinner/Spinner.tsx create mode 100644 app/javascript/src/components/Spinner/index.ts create mode 100644 app/javascript/src/utils/notEmpty.ts diff --git a/app/javascript/src/components/Navbar/Navbar.tsx b/app/javascript/src/components/Navbar/Navbar.tsx index c367b4d..16f8f1e 100644 --- a/app/javascript/src/components/Navbar/Navbar.tsx +++ b/app/javascript/src/components/Navbar/Navbar.tsx @@ -1,4 +1,5 @@ import * as React from "react"; +import { MenuIcon } from "@heroicons/react/outline"; import XStakeLogo from "../../assets/images/logo.png"; import { useApp } from "../../contexts/AppProvider"; @@ -23,23 +24,10 @@ export const Navbar = () => { return (