Improve layouts of sharing dialog
[arvados.git] / src / views-components / sharing-dialog / sharing-dialog-component.tsx
index 1392e001404f539c82f1405ea298c6819a4f05f2..2dcb60903116e24309c298a322777d93b3a31bff 100644 (file)
@@ -15,13 +15,14 @@ export interface SharingDialogDataProps {
 }
 export interface SharingDialogActionProps {
     onClose: () => void;
+    onExited: () => void;
     onSave: () => void;
     onAdvanced: () => void;
 }
 export default (props: SharingDialogDataProps & SharingDialogActionProps) => {
-    const { children, open, advancedEnabled, saveEnabled, onAdvanced, onClose, onSave } = props;
+    const { children, open, advancedEnabled, saveEnabled, onAdvanced, onClose, onExited, onSave } = props;
     return <Dialog
-        {...{ open, onClose }}
+        {...{ open, onClose, onExited }}
         fullWidth
         maxWidth='sm'>
         <DialogTitle>