mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-15 12:20:31 +00:00
chrone: sperate client and server to different repos.
This commit is contained in:
23
src/components/CloudLoadingIndicator.js
Normal file
23
src/components/CloudLoadingIndicator.js
Normal file
@@ -0,0 +1,23 @@
|
||||
import React from 'react';
|
||||
import classNames from 'classnames';
|
||||
import { Spinner } from '@blueprintjs/core';
|
||||
import { CLASSES } from 'common/classes';
|
||||
import If from './Utils/If';
|
||||
|
||||
export default function CloudLoadingIndicator({
|
||||
isLoading,
|
||||
children,
|
||||
}) {
|
||||
|
||||
return (
|
||||
<div className={classNames(
|
||||
CLASSES.CLOUD_SPINNER,
|
||||
{ [CLASSES.IS_LOADING]: isLoading },
|
||||
)}>
|
||||
<If condition={isLoading}>
|
||||
<Spinner size={30} value={null} />
|
||||
</If>
|
||||
{ children }
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user