Migrate ShareSheetErrorList from js to ts
Summary: Migrated ShareSheetErrorList.js to ShareSheetErrorList.tsx Reviewed By: jknoxville Differential Revision: D16734553 fbshipit-source-id: ed608d5b171deda1caa284c27527e2f63af67ebb
This commit is contained in:
committed by
Facebook Github Bot
parent
3e11e8887d
commit
223cfe53d7
@@ -24,7 +24,7 @@ import {shareFlipperData} from '../fb-stubs/user';
|
||||
import {exportStore, EXPORT_FLIPPER_TRACE_EVENT} from '../utils/exportData';
|
||||
import PropTypes from 'prop-types';
|
||||
import {clipboard} from 'electron';
|
||||
import ShareSheetErrorList from './ShareSheetErrorList.js';
|
||||
import ShareSheetErrorList from './ShareSheetErrorList';
|
||||
import {reportPlatformFailures} from '../utils/metrics';
|
||||
import CancellableExportStatus from './CancellableExportStatus';
|
||||
// $FlowFixMe: Missing type defs for node built-in.
|
||||
|
||||
@@ -5,11 +5,12 @@
|
||||
* @format
|
||||
*/
|
||||
|
||||
import {PureComponent, FlexColumn, Text, styled} from 'flipper';
|
||||
import React, {PureComponent} from 'react';
|
||||
import {FlexColumn, Text, styled} from 'flipper';
|
||||
|
||||
type Props = {|
|
||||
errors: Array<Error>,
|
||||
|};
|
||||
type Props = {
|
||||
errors: Array<Error>;
|
||||
};
|
||||
|
||||
const ErrorMessage = styled(Text)({
|
||||
display: 'block',
|
||||
@@ -30,7 +30,7 @@ import {
|
||||
EXPORT_FLIPPER_TRACE_EVENT,
|
||||
} from '../utils/exportData.tsx';
|
||||
import PropTypes from 'prop-types';
|
||||
import ShareSheetErrorList from './ShareSheetErrorList.js';
|
||||
import ShareSheetErrorList from './ShareSheetErrorList.tsx';
|
||||
|
||||
const Container = styled(FlexColumn)({
|
||||
padding: 20,
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
* @format
|
||||
*/
|
||||
|
||||
import {formatError} from '../ShareSheetErrorList.js';
|
||||
import {formatError} from '../ShareSheetErrorList.tsx';
|
||||
|
||||
test('normal error is formatted', () => {
|
||||
const e = new Error('something went wrong');
|
||||
|
||||
Reference in New Issue
Block a user