diff --git a/Exception404/src/index.tsx b/Exception404/src/index.tsx index 35a6b9c6598555e7bb4ef240ac724d23ad3a5ea7..59097efd559062befbe40126444f460741a98415 100644 --- a/Exception404/src/index.tsx +++ b/Exception404/src/index.tsx @@ -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 () => ( ( backText={formatMessage({ id: 'BLOCK_NAME.exception.back' })} /> ); - -export default PAGE_NAME_UPPER_CAMEL_CASE; diff --git a/Exception500/src/index.tsx b/Exception500/src/index.tsx index edbf668546644e0fdc0c33d35b6104f83f3ea289..87c15a97b1a2fb2dc620d80947e942d3d4aeb0ab 100644 --- a/Exception500/src/index.tsx +++ b/Exception500/src/index.tsx @@ -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 () => ( ( backText={formatMessage({ id: 'BLOCK_NAME.exception.back' })} /> ); - -export default PAGE_NAME_UPPER_CAMEL_CASE;