mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-15 04:10:32 +00:00
chrone: sperate client and server to different repos.
This commit is contained in:
14
src/components/Dialog/DialogContent.js
Normal file
14
src/components/Dialog/DialogContent.js
Normal file
@@ -0,0 +1,14 @@
|
||||
import React from 'react';
|
||||
import { Spinner, Classes } from '@blueprintjs/core';
|
||||
import classNames from 'classnames';
|
||||
|
||||
export default function DialogContent(props) {
|
||||
const { isLoading, children } = props;
|
||||
|
||||
const loadingContent = (
|
||||
<div className={classNames(Classes.DIALOG_BODY, 'is-loading')}>
|
||||
<Spinner size={30} />
|
||||
</div>
|
||||
);
|
||||
return isLoading ? loadingContent : children;
|
||||
}
|
||||
Reference in New Issue
Block a user