From 4d1e7dc80f73d664b33e839560103f3bfdfd54ae Mon Sep 17 00:00:00 2001 From: Pascal Hartig Date: Tue, 8 Oct 2019 00:17:23 -0700 Subject: [PATCH] Add comment about error handling Summary: Added some notes to T55169042. Also limited the acceptable result types. Reviewed By: jknoxville Differential Revision: D17787130 fbshipit-source-id: 19cefdde5ab195080281e9f2e26f5a236dd59629 --- src/chrome/ShareSheetExportUrl.tsx | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/src/chrome/ShareSheetExportUrl.tsx b/src/chrome/ShareSheetExportUrl.tsx index dbc89278e..98809b778 100644 --- a/src/chrome/ShareSheetExportUrl.tsx +++ b/src/chrome/ShareSheetExportUrl.tsx @@ -9,9 +9,7 @@ import { FlexColumn, Button, styled, - colors, Text, - LoadingIndicator, FlexRow, Spacer, Input, @@ -44,16 +42,6 @@ const Container = styled(FlexColumn)({ width: 500, }); -const Center = styled(FlexColumn)({ - alignItems: 'center', - paddingTop: 50, - paddingBottom: 50, -}); - -const Uploading = styled(Text)({ - marginTop: 15, -}); - const Copy = styled(Input)({ marginRight: 0, marginBottom: 15, @@ -84,7 +72,7 @@ type Props = { type State = { runInBackground: boolean; errorArray: Array; - result: DataExportError | DataExportResult | null | undefined; + result: DataExportError | DataExportResult | null; statusUpdate: string | null; }; @@ -133,6 +121,8 @@ export default class ShareSheetExportUrl extends Component { ); statusUpdate('Uploading Flipper Trace...'); + // TODO(T55169042): Implement error handling. Result is not tested + // its result type right now, causing the upload indicator to stall forever. const result = await reportPlatformFailures( shareFlipperData(serializedString), `${SHARE_FLIPPER_TRACE_EVENT}`,