feat: optimize setup style.

This commit is contained in:
Ahmed Bouhuolia
2020-10-13 13:00:28 +02:00
parent eee3109120
commit 1467f1c284
5 changed files with 55 additions and 32 deletions

View File

@@ -7,20 +7,20 @@ export default function DashboardLoadingIndicator({
className,
children,
}) {
return (
<div className={classNames(className)}>
<Choose>
<Choose.When condition={isLoading}>
return (
<Choose>
<Choose.When condition={isLoading}>
<div className={classNames('bigcapital-loading', className)}>
<div class="center">
<Icon icon="bigcapital" height={37} width={214} />
<span>Please wait while resources loading...</span>
<span class="text">Please wait while resources loading...</span>
</div>
</Choose.When>
</div>
</Choose.When>
<Choose.Otherwise>
{ children }
</Choose.Otherwise>
</Choose>
</div>
<Choose.Otherwise>
{ children }
</Choose.Otherwise>
</Choose>
);
}