changes
This commit is contained in:
parent
c7d68f62e4
commit
9f3ea9f459
|
@ -5,7 +5,6 @@ import ManageAddViewer from '../ShareControl/ManageAddViewer';
|
|||
import ManageAddCollab from './MangeAddCollab';
|
||||
import ManageParticipants from './ManageParticipants';
|
||||
import { CollectionSummaryType } from 'constants/collection';
|
||||
import { Stack } from '@mui/material';
|
||||
|
||||
export default function ShareControl({
|
||||
collection,
|
||||
|
@ -22,23 +21,21 @@ export default function ShareControl({
|
|||
: console.log('not incomingShareViewer');
|
||||
return (
|
||||
<>
|
||||
<Stack spacing={0}>
|
||||
{collection.sharees.length > 0 ? (
|
||||
<ManageParticipants
|
||||
collection={collection}
|
||||
onRootClose={onRootClose}
|
||||
/>
|
||||
) : null}
|
||||
<ManageAddViewer
|
||||
{collection.sharees.length > 0 ? (
|
||||
<ManageParticipants
|
||||
collection={collection}
|
||||
onRootClose={onRootClose}
|
||||
/>
|
||||
) : null}
|
||||
<ManageAddViewer
|
||||
collection={collection}
|
||||
onRootClose={onRootClose}
|
||||
/>
|
||||
|
||||
<ManageAddCollab
|
||||
collection={collection}
|
||||
onRootClose={onRootClose}
|
||||
/>
|
||||
</Stack>
|
||||
<ManageAddCollab
|
||||
collection={collection}
|
||||
onRootClose={onRootClose}
|
||||
/>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue