Commit 7cc1fccd authored by afc163's avatar afc163

remove extra empty object argument

parent 5b24b0e3
...@@ -88,7 +88,7 @@ class BaseView extends Component { ...@@ -88,7 +88,7 @@ class BaseView extends Component {
<div className={styles.baseView} ref={this.getViewDom}> <div className={styles.baseView} ref={this.getViewDom}>
<div className={styles.left}> <div className={styles.left}>
<Form layout="vertical" onSubmit={this.handleSubmit} hideRequiredMark> <Form layout="vertical" onSubmit={this.handleSubmit} hideRequiredMark>
<FormItem label={formatMessage({ id: 'app.settings.basic.email' }, {})}> <FormItem label={formatMessage({ id: 'app.settings.basic.email' })}>
{getFieldDecorator('email', { {getFieldDecorator('email', {
rules: [ rules: [
{ {
...@@ -98,7 +98,7 @@ class BaseView extends Component { ...@@ -98,7 +98,7 @@ class BaseView extends Component {
], ],
})(<Input />)} })(<Input />)}
</FormItem> </FormItem>
<FormItem label={formatMessage({ id: 'app.settings.basic.nickname' }, {})}> <FormItem label={formatMessage({ id: 'app.settings.basic.nickname' })}>
{getFieldDecorator('name', { {getFieldDecorator('name', {
rules: [ rules: [
{ {
...@@ -108,7 +108,7 @@ class BaseView extends Component { ...@@ -108,7 +108,7 @@ class BaseView extends Component {
], ],
})(<Input />)} })(<Input />)}
</FormItem> </FormItem>
<FormItem label={formatMessage({ id: 'app.settings.basic.profile' }, {})}> <FormItem label={formatMessage({ id: 'app.settings.basic.profile' })}>
{getFieldDecorator('profile', { {getFieldDecorator('profile', {
rules: [ rules: [
{ {
...@@ -118,12 +118,12 @@ class BaseView extends Component { ...@@ -118,12 +118,12 @@ class BaseView extends Component {
], ],
})( })(
<Input.TextArea <Input.TextArea
placeholder={formatMessage({ id: 'app.settings.basic.profile-placeholder' }, {})} placeholder={formatMessage({ id: 'app.settings.basic.profile-placeholder' })}
rows={4} rows={4}
/> />
)} )}
</FormItem> </FormItem>
<FormItem label={formatMessage({ id: 'app.settings.basic.country' }, {})}> <FormItem label={formatMessage({ id: 'app.settings.basic.country' })}>
{getFieldDecorator('country', { {getFieldDecorator('country', {
rules: [ rules: [
{ {
...@@ -137,7 +137,7 @@ class BaseView extends Component { ...@@ -137,7 +137,7 @@ class BaseView extends Component {
</Select> </Select>
)} )}
</FormItem> </FormItem>
<FormItem label={formatMessage({ id: 'app.settings.basic.geographic' }, {})}> <FormItem label={formatMessage({ id: 'app.settings.basic.geographic' })}>
{getFieldDecorator('geographic', { {getFieldDecorator('geographic', {
rules: [ rules: [
{ {
...@@ -150,7 +150,7 @@ class BaseView extends Component { ...@@ -150,7 +150,7 @@ class BaseView extends Component {
], ],
})(<GeographicView />)} })(<GeographicView />)}
</FormItem> </FormItem>
<FormItem label={formatMessage({ id: 'app.settings.basic.address' }, {})}> <FormItem label={formatMessage({ id: 'app.settings.basic.address' })}>
{getFieldDecorator('address', { {getFieldDecorator('address', {
rules: [ rules: [
{ {
...@@ -160,7 +160,7 @@ class BaseView extends Component { ...@@ -160,7 +160,7 @@ class BaseView extends Component {
], ],
})(<Input />)} })(<Input />)}
</FormItem> </FormItem>
<FormItem label={formatMessage({ id: 'app.settings.basic.phone' }, {})}> <FormItem label={formatMessage({ id: 'app.settings.basic.phone' })}>
{getFieldDecorator('phone', { {getFieldDecorator('phone', {
rules: [ rules: [
{ {
......
...@@ -6,8 +6,8 @@ class NotificationView extends Component { ...@@ -6,8 +6,8 @@ class NotificationView extends Component {
getData = () => { getData = () => {
const Action = ( const Action = (
<Switch <Switch
checkedChildren={formatMessage({ id: 'app.settings.open' }, {})} checkedChildren={formatMessage({ id: 'app.settings.open' })}
unCheckedChildren={formatMessage({ id: 'app.settings.close' }, {})} unCheckedChildren={formatMessage({ id: 'app.settings.close' })}
defaultChecked defaultChecked
/> />
); );
......
...@@ -28,7 +28,7 @@ class SecurityView extends Component { ...@@ -28,7 +28,7 @@ class SecurityView extends Component {
title: formatMessage({ id: 'app.settings.security.password' }, {}), title: formatMessage({ id: 'app.settings.security.password' }, {}),
description: ( description: (
<Fragment> <Fragment>
{formatMessage({ id: 'app.settings.security.password-description' }, {})} {formatMessage({ id: 'app.settings.security.password-description' })}
{passwordStrength.strong} {passwordStrength.strong}
</Fragment> </Fragment>
), ),
......
...@@ -21,7 +21,7 @@ export default ({ children, route, location }) => { ...@@ -21,7 +21,7 @@ export default ({ children, route, location }) => {
const noMatch = ( const noMatch = (
<Exception <Exception
type="403" type="403"
desc={formatMessage({ id: 'app.exception.description.403' }, {})} desc={formatMessage({ id: 'app.exception.description.403' })}
linkElement={Link} linkElement={Link}
backText={formatMessage({ id: 'app.exception.back' })} backText={formatMessage({ id: 'app.exception.back' })}
/> />
......
...@@ -6,7 +6,7 @@ import Exception from '@/components/Exception'; ...@@ -6,7 +6,7 @@ import Exception from '@/components/Exception';
const Exception403 = () => ( const Exception403 = () => (
<Exception <Exception
type="403" type="403"
desc={formatMessage({ id: 'app.exception.description.403' }, {})} desc={formatMessage({ id: 'app.exception.description.403' })}
linkElement={Link} linkElement={Link}
backText={formatMessage({ id: 'app.exception.back' })} backText={formatMessage({ id: 'app.exception.back' })}
/> />
......
...@@ -6,7 +6,7 @@ import Exception from '@/components/Exception'; ...@@ -6,7 +6,7 @@ import Exception from '@/components/Exception';
const Exception404 = () => ( const Exception404 = () => (
<Exception <Exception
type="404" type="404"
desc={formatMessage({ id: 'app.exception.description.404' }, {})} desc={formatMessage({ id: 'app.exception.description.404' })}
linkElement={Link} linkElement={Link}
backText={formatMessage({ id: 'app.exception.back' })} backText={formatMessage({ id: 'app.exception.back' })}
/> />
......
...@@ -6,7 +6,7 @@ import Exception from '@/components/Exception'; ...@@ -6,7 +6,7 @@ import Exception from '@/components/Exception';
const Exception500 = () => ( const Exception500 = () => (
<Exception <Exception
type="500" type="500"
desc={formatMessage({ id: 'app.exception.description.500' }, {})} desc={formatMessage({ id: 'app.exception.description.500' })}
linkElement={Link} linkElement={Link}
backText={formatMessage({ id: 'app.exception.back' })} backText={formatMessage({ id: 'app.exception.back' })}
/> />
......
...@@ -55,8 +55,8 @@ export default () => ( ...@@ -55,8 +55,8 @@ export default () => (
<Card bordered={false}> <Card bordered={false}>
<Result <Result
type="error" type="error"
title={formatMessage({ id: 'app.result.error.title' }, {})} title={formatMessage({ id: 'app.result.error.title' })}
description={formatMessage({ id: 'app.result.error.description' }, {})} description={formatMessage({ id: 'app.result.error.description' })}
extra={extra} extra={extra}
actions={actions} actions={actions}
style={{ marginTop: 48, marginBottom: 16 }} style={{ marginTop: 48, marginBottom: 16 }}
......
...@@ -132,8 +132,8 @@ export default () => ( ...@@ -132,8 +132,8 @@ export default () => (
<Card bordered={false}> <Card bordered={false}>
<Result <Result
type="success" type="success"
title={formatMessage({ id: 'app.result.success.title' }, {})} title={formatMessage({ id: 'app.result.success.title' })}
description={formatMessage({ id: 'app.result.success.description' }, {})} description={formatMessage({ id: 'app.result.success.description' })}
extra={extra} extra={extra}
actions={actions} actions={actions}
style={{ marginTop: 48, marginBottom: 16 }} style={{ marginTop: 48, marginBottom: 16 }}
......
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