mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-19 14:20:31 +00:00
chrone: sperate client and server to different repos.
This commit is contained in:
26
src/components/Drawer/DrawerInsider.js
Normal file
26
src/components/Drawer/DrawerInsider.js
Normal file
@@ -0,0 +1,26 @@
|
||||
import React from 'react';
|
||||
import classnames from 'classnames';
|
||||
import LoadingIndicator from 'components/LoadingIndicator';
|
||||
|
||||
/**
|
||||
* Drawer inside.
|
||||
*/
|
||||
export function DrawerInsider({
|
||||
loading,
|
||||
children,
|
||||
name,
|
||||
mount = false,
|
||||
className,
|
||||
}) {
|
||||
return (
|
||||
<div className={classnames({
|
||||
'drawer__insider': true,
|
||||
'drawer__insider--loading': loading,
|
||||
[`drawer__insider--${name}`]: !!name,
|
||||
}, className)}>
|
||||
<LoadingIndicator loading={loading} mount={mount}>
|
||||
{ children }
|
||||
</LoadingIndicator>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user