Refactor ShareSheetExportFile

Summary:
Wanted to make a small change and found it a bit difficult to
follow, so I tried to make it a bit more TypeScript-y.

Logic should be unchanged.

Reviewed By: priteshrnandgaonkar

Differential Revision: D17762346

fbshipit-source-id: d0d8b2e25b532b7b10079907d6da86bdd878a75c
This commit is contained in:
Pascal Hartig
2019-10-08 00:17:23 -07:00
committed by Facebook Github Bot
parent 7f2f2febcf
commit a41625e176
3 changed files with 109 additions and 97 deletions

View File

@@ -101,7 +101,7 @@ export class App extends React.Component<Props> {
file={
this.props.share && this.props.share.type === 'file'
? this.props.share.file
: undefined
: null
}
logger={this.props.logger}
/>