Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
pro-blocks
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
duanledexianxianxian
pro-blocks
Commits
c31c81af
Commit
c31c81af
authored
May 22, 2019
by
陈帅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use export default
parent
76b340c6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
6 deletions
+2
-6
Exception404/src/index.tsx
Exception404/src/index.tsx
+1
-3
Exception500/src/index.tsx
Exception500/src/index.tsx
+1
-3
No files found.
Exception404/src/index.tsx
View file @
c31c81af
...
@@ -3,7 +3,7 @@ import { formatMessage } from 'umi-plugin-react/locale';
...
@@ -3,7 +3,7 @@ import { formatMessage } from 'umi-plugin-react/locale';
import
Link
from
'
umi/link
'
;
import
Link
from
'
umi/link
'
;
import
Exception
from
'
./components/Exception
'
;
import
Exception
from
'
./components/Exception
'
;
const
PAGE_NAME_UPPER_CAMEL_CASE
:
React
.
SFC
=
()
=>
(
export
default
()
=>
(
<
Exception
<
Exception
type
=
"404"
type
=
"404"
linkElement
=
{
Link
}
linkElement
=
{
Link
}
...
@@ -11,5 +11,3 @@ const PAGE_NAME_UPPER_CAMEL_CASE: React.SFC = () => (
...
@@ -11,5 +11,3 @@ const PAGE_NAME_UPPER_CAMEL_CASE: React.SFC = () => (
backText
=
{
formatMessage
({
id
:
'
BLOCK_NAME.exception.back
'
})
}
backText
=
{
formatMessage
({
id
:
'
BLOCK_NAME.exception.back
'
})
}
/>
/>
);
);
export
default
PAGE_NAME_UPPER_CAMEL_CASE
;
Exception500/src/index.tsx
View file @
c31c81af
...
@@ -3,7 +3,7 @@ import { formatMessage } from 'umi-plugin-react/locale';
...
@@ -3,7 +3,7 @@ import { formatMessage } from 'umi-plugin-react/locale';
import
Link
from
'
umi/link
'
;
import
Link
from
'
umi/link
'
;
import
Exception
from
'
./components/Exception
'
;
import
Exception
from
'
./components/Exception
'
;
const
PAGE_NAME_UPPER_CAMEL_CASE
:
React
.
FC
=
()
=>
(
export
default
()
=>
(
<
Exception
<
Exception
type
=
"500"
type
=
"500"
desc
=
{
formatMessage
({
id
:
'
BLOCK_NAME.description.500
'
})
}
desc
=
{
formatMessage
({
id
:
'
BLOCK_NAME.description.500
'
})
}
...
@@ -11,5 +11,3 @@ const PAGE_NAME_UPPER_CAMEL_CASE: React.FC = () => (
...
@@ -11,5 +11,3 @@ const PAGE_NAME_UPPER_CAMEL_CASE: React.FC = () => (
backText
=
{
formatMessage
({
id
:
'
BLOCK_NAME.exception.back
'
})
}
backText
=
{
formatMessage
({
id
:
'
BLOCK_NAME.exception.back
'
})
}
/>
/>
);
);
export
default
PAGE_NAME_UPPER_CAMEL_CASE
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment