mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 21:00:31 +00:00
fix: loading spinner style in dialog/alert component.
feat: add sell and purchase description fields.
This commit is contained in:
@@ -1,15 +1,18 @@
|
||||
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={Classes.DIALOG_BODY}><Spinner size={30} /></div>
|
||||
);
|
||||
return (
|
||||
<div>
|
||||
{isLoading ? loadingContent : children}
|
||||
<div
|
||||
className={classNames(Classes.DIALOG_BODY, {
|
||||
'is-loading': isLoading,
|
||||
})}
|
||||
>
|
||||
<Spinner size={30} />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
return <div>{isLoading ? loadingContent : children}</div>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user