ErrorBlock

Summary: _typescript_

Reviewed By: bnelo12

Differential Revision: D16830531

fbshipit-source-id: 600ff64959426a0f0ac75c76e28e639da15e6be3
This commit is contained in:
Daniel Büchele
2019-08-20 03:18:32 -07:00
committed by Facebook Github Bot
parent 84092534ce
commit f63782c043
2 changed files with 6 additions and 6 deletions

View File

@@ -5,9 +5,9 @@
* @format
*/
import styled from '../styled/index.js';
import styled from 'react-emotion';
import React from 'react';
import CodeBlock from './CodeBlock.js';
import CodeBlock from './CodeBlock';
export const ErrorBlockContainer = styled(CodeBlock)({
backgroundColor: '#f2dede',
@@ -23,9 +23,9 @@ export const ErrorBlockContainer = styled(CodeBlock)({
*/
export default class ErrorBlock extends React.Component<{
/** Error message to display. Error object's `stack` or `message` property is used. */
error: Error | string | void,
error: Error | string | void;
/** Additional className added to the container. */
className?: string,
className?: string;
}> {
render() {
const {className, error} = this.props;

View File

@@ -80,8 +80,8 @@ export {default as Checkbox} from './components/Checkbox.js';
export {default as CodeBlock} from './components/CodeBlock.js';
// error
export {default as ErrorBlock} from './components/ErrorBlock.js';
export {ErrorBlockContainer} from './components/ErrorBlock.js';
export {default as ErrorBlock} from './components/ErrorBlock.tsx';
export {ErrorBlockContainer} from './components/ErrorBlock.tsx';
export {default as ErrorBoundary} from './components/ErrorBoundary.tsx';
// interactive components