From 521dca841ee011b05662890758c1055c05508a32 Mon Sep 17 00:00:00 2001 From: kenve Date: Tue, 4 Sep 2018 17:06:24 +0800 Subject: [PATCH] fix: missing ts definitions --- src/components/Exception/index.d.ts | 2 ++ src/components/Exception/index.js | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/Exception/index.d.ts b/src/components/Exception/index.d.ts index 5e32516a..cf40d6ac 100644 --- a/src/components/Exception/index.d.ts +++ b/src/components/Exception/index.d.ts @@ -7,6 +7,8 @@ export interface IExceptionProps { actions?: React.ReactNode; linkElement?: React.ReactNode; style?: React.CSSProperties; + className?: string; + backText?: React.ReactNode; } export default class Exception extends React.Component {} diff --git a/src/components/Exception/index.js b/src/components/Exception/index.js index b358d11b..5291d579 100644 --- a/src/components/Exception/index.js +++ b/src/components/Exception/index.js @@ -4,7 +4,7 @@ import { Button } from 'antd'; import config from './typeConfig'; import styles from './index.less'; -class Excrption extends React.PureComponent { +class Exception extends React.PureComponent { static defaultProps = { backText: 'back to home', }; @@ -56,4 +56,4 @@ class Excrption extends React.PureComponent { } } -export default Excrption; +export default Exception; -- GitLab