From 7306ea3bcf3c7d988a9bce082c992df07947ae92 Mon Sep 17 00:00:00 2001 From: jas0ncn Date: Mon, 10 Sep 2018 00:17:45 +0800 Subject: [PATCH] Improve: use double quote on jsx property --- src/containers/Sidebar/index.tsx | 10 +++++----- src/i18n/index.ts | 6 +++--- src/views/App.tsx | 2 +- tslint.json | 3 ++- 4 files changed, 11 insertions(+), 10 deletions(-) diff --git a/src/containers/Sidebar/index.tsx b/src/containers/Sidebar/index.tsx index 6fddc80..18e2c3d 100644 --- a/src/containers/Sidebar/index.tsx +++ b/src/containers/Sidebar/index.tsx @@ -18,14 +18,14 @@ class Sidebar extends React.Component { render () { const { routes, t } = this.props return ( -
- -
    +
    + +
      { routes.map( ({ path, name, exact }) => ( -
    • - { t(name) } +
    • + { t(name) }
    • ) ) diff --git a/src/i18n/index.ts b/src/i18n/index.ts index 2c896df..8bbf091 100644 --- a/src/i18n/index.ts +++ b/src/i18n/index.ts @@ -12,16 +12,16 @@ const options = { Overview: 'Overview', Logs: 'Logs', Rules: 'Rules', - Setting: 'Setting' + Settings: 'Setting' } }, - cn: { + 'zh-CN': { slidebar: { Proxies: '代理', Overview: '总览', Logs: '日志', Rules: '规则', - Setting: '设置' + Settings: '设置' } } }, diff --git a/src/views/App.tsx b/src/views/App.tsx index b389680..c4e0326 100644 --- a/src/views/App.tsx +++ b/src/views/App.tsx @@ -25,7 +25,7 @@ export default class App extends React.Component { ] return ( -
      +
      { diff --git a/tslint.json b/tslint.json index cebb2eb..ad8beea 100644 --- a/tslint.json +++ b/tslint.json @@ -3,6 +3,7 @@ "rules": { "indent": [true, "spaces", 4], "ter-indent": [true, 4], - "no-empty": false + "no-empty": false, + "quotemark": [true, "single", "jsx-double"] } }