Commit 7cc1fccd authored by afc163's avatar afc163

remove extra empty object argument

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