Add simple loading and default state to datasourcewrapper (#1815)
This commit is contained in:
1 parent
1d8f5cfc42
commit
101efa4cf4
3 files changed
+34
-34
No files matched your search
@@ -3,12 +3,13 @@ import PropTypes from 'prop-types';
|
||||
import classnames from 'classnames';
|
||||
import { Icon, Typography } from '@ohif/ui';
|
||||
|
||||
const EmptyStudies = ({ className }) => {
|
||||
// TODO: Add loading spinner to OHIF + use it here.
|
||||
const EmptyStudies = ({ className, isLoading }) => {
|
||||
return (
|
||||
<div className={classnames('flex-col inline-flex items-center', className)}>
|
||||
<Icon name="magnifier" className="mb-4" />
|
||||
<Typography className="text-primary-light" variant="h5">
|
||||
No studies available
|
||||
{!isLoading ? 'No studies available' : 'Loading...'}
|
||||
</Typography>
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user