mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 21:00:31 +00:00
Merge branch 'master' of https://github.com/abouolia/Bigcapital
This commit is contained in:
23
client/src/components/CloudLoadingIndicator.js
Normal file
23
client/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>
|
||||
);
|
||||
}
|
||||
@@ -28,6 +28,7 @@ import InputPrependButton from './Forms/InputPrependButton';
|
||||
import CategoriesSelectList from './CategoriesSelectList';
|
||||
import Row from './Grid/Row';
|
||||
import Col from './Grid/Col';
|
||||
import CloudLoadingIndicator from './CloudLoadingIndicator';
|
||||
|
||||
const Hint = FieldHint;
|
||||
|
||||
@@ -63,4 +64,5 @@ export {
|
||||
CategoriesSelectList,
|
||||
Col,
|
||||
Row,
|
||||
CloudLoadingIndicator,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user