- implement tips on loading screen

- implement centralized sections
- removed react-spinner package
This commit is contained in:
Amruth Pillai
2020-07-06 10:02:17 +05:30
parent 65fc779d58
commit 6d3e5823fc
18 changed files with 111 additions and 52 deletions

View File

@ -1,6 +1,5 @@
import React from "react";
import classNames from "classnames";
import Loader from "react-loader-spinner";
import React from "react";
import styles from "./Button.module.css";
const Button = ({
@ -27,11 +26,7 @@ const Button = ({
onClick={isLoading ? undefined : onClick}
>
{icon && <Icon size="14" className="mr-2" />}
{isLoading ? (
<Loader type="ThreeDots" color="#FFF" height={18} width={28} />
) : (
title
)}
{isLoading ? "Loading..." : title}
</button>
);
};