ErrorBlock
Summary: _typescript_ Reviewed By: bnelo12 Differential Revision: D16830531 fbshipit-source-id: 600ff64959426a0f0ac75c76e28e639da15e6be3
This commit is contained in:
committed by
Facebook Github Bot
parent
84092534ce
commit
f63782c043
@@ -5,9 +5,9 @@
|
|||||||
* @format
|
* @format
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import styled from '../styled/index.js';
|
import styled from 'react-emotion';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import CodeBlock from './CodeBlock.js';
|
import CodeBlock from './CodeBlock';
|
||||||
|
|
||||||
export const ErrorBlockContainer = styled(CodeBlock)({
|
export const ErrorBlockContainer = styled(CodeBlock)({
|
||||||
backgroundColor: '#f2dede',
|
backgroundColor: '#f2dede',
|
||||||
@@ -23,9 +23,9 @@ export const ErrorBlockContainer = styled(CodeBlock)({
|
|||||||
*/
|
*/
|
||||||
export default class ErrorBlock extends React.Component<{
|
export default class ErrorBlock extends React.Component<{
|
||||||
/** Error message to display. Error object's `stack` or `message` property is used. */
|
/** 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. */
|
/** Additional className added to the container. */
|
||||||
className?: string,
|
className?: string;
|
||||||
}> {
|
}> {
|
||||||
render() {
|
render() {
|
||||||
const {className, error} = this.props;
|
const {className, error} = this.props;
|
||||||
@@ -80,8 +80,8 @@ export {default as Checkbox} from './components/Checkbox.js';
|
|||||||
export {default as CodeBlock} from './components/CodeBlock.js';
|
export {default as CodeBlock} from './components/CodeBlock.js';
|
||||||
|
|
||||||
// error
|
// error
|
||||||
export {default as ErrorBlock} from './components/ErrorBlock.js';
|
export {default as ErrorBlock} from './components/ErrorBlock.tsx';
|
||||||
export {ErrorBlockContainer} from './components/ErrorBlock.js';
|
export {ErrorBlockContainer} from './components/ErrorBlock.tsx';
|
||||||
export {default as ErrorBoundary} from './components/ErrorBoundary.tsx';
|
export {default as ErrorBoundary} from './components/ErrorBoundary.tsx';
|
||||||
|
|
||||||
// interactive components
|
// interactive components
|
||||||
|
|||||||
Reference in New Issue
Block a user