mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 12:50:38 +00:00
WIP
This commit is contained in:
17
client/src/components/LoadingIndicator.js
Normal file
17
client/src/components/LoadingIndicator.js
Normal file
@@ -0,0 +1,17 @@
|
||||
import React from 'react';
|
||||
import {Spinner} from '@blueprintjs/core';
|
||||
|
||||
export default function LoadingIndicator({
|
||||
loading,
|
||||
spinnerSize = 40,
|
||||
children
|
||||
}) {
|
||||
return (
|
||||
<>
|
||||
{ (loading) ? (
|
||||
<div class="dashboard__loading-indicator">
|
||||
<Spinner size={spinnerSize} value={null} />
|
||||
</div>) : children }
|
||||
</>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user