kenve 7 лет назад
Родитель
Сommit
521dca841e
2 измененных файлов с 4 добавлено и 2 удалено
  1. 2 0
      src/components/Exception/index.d.ts
  2. 2 2
      src/components/Exception/index.js

+ 2 - 0
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<IExceptionProps, any> {}

+ 2 - 2
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;