Close export dialog autmatically for support form

Summary: This diff adds the support to close the dialog automatically for the support form.

Reviewed By: passy

Differential Revision: D17899862

fbshipit-source-id: 9d9cd14556a4cebe60f8cc1d082be3e439998e9c
This commit is contained in:
Pritesh Nandgaonkar
2019-10-14 08:05:55 -07:00
committed by Facebook Github Bot
parent 4a8a4aabb6
commit de17f3905b
5 changed files with 63 additions and 12 deletions

View File

@@ -93,7 +93,13 @@ export class App extends React.Component<Props> {
return <ExportDataPluginSheet onHide={onHide} />;
case ACTIVE_SHEET_SHARE_DATA:
return (
<ShareSheetExportUrl onHide={onHide} logger={this.props.logger} />
<ShareSheetExportUrl
onHide={onHide}
logger={this.props.logger}
closeOnFinish={
this.props.share != null && this.props.share.closeOnFinish
}
/>
);
case ACTIVE_SHEET_SHARE_DATA_IN_FILE:
return this.props.share && this.props.share.type === 'file' ? (