Commit c31c81af authored by 陈帅's avatar 陈帅

use export default

parent 76b340c6
......@@ -3,7 +3,7 @@ import { formatMessage } from 'umi-plugin-react/locale';
import Link from 'umi/link';
import Exception from './components/Exception';
const PAGE_NAME_UPPER_CAMEL_CASE: React.SFC = () => (
export default () => (
<Exception
type="404"
linkElement={Link}
......@@ -11,5 +11,3 @@ const PAGE_NAME_UPPER_CAMEL_CASE: React.SFC = () => (
backText={formatMessage({ id: 'BLOCK_NAME.exception.back' })}
/>
);
export default PAGE_NAME_UPPER_CAMEL_CASE;
......@@ -3,7 +3,7 @@ import { formatMessage } from 'umi-plugin-react/locale';
import Link from 'umi/link';
import Exception from './components/Exception';
const PAGE_NAME_UPPER_CAMEL_CASE: React.FC = () => (
export default () => (
<Exception
type="500"
desc={formatMessage({ id: 'BLOCK_NAME.description.500' })}
......@@ -11,5 +11,3 @@ const PAGE_NAME_UPPER_CAMEL_CASE: React.FC = () => (
backText={formatMessage({ id: 'BLOCK_NAME.exception.back' })}
/>
);
export default PAGE_NAME_UPPER_CAMEL_CASE;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment