瀏覽代碼

change communication to contact

mike 6 年之前
父節點
當前提交
6afa03c34f

+ 10 - 10
src/app/basicVersion/BasicVersion.jsx

@@ -7,7 +7,7 @@ import {Layout, Menu, Button, Spin, Icon, LocaleProvider, Dropdown, Avatar, Badg
 import './index.css';
 import CaseShow from "./caseShow/CaseShow";
 import MyDeploy from "./myDeploy/MyDeploy";
-import Communication from "./communication/Communication";
+import Contact from "./contact/Contact";
 import {logoutUrl} from "../../config";
 import {getCookie, setCookie} from "../../cookie";
 import {GET_USER} from "../../gql";
@@ -40,8 +40,8 @@ class BasicVersion extends Component {
                 case 'deploy':
                     this.state.menuLevel1 = 'my-deploy';
                     break;
-                case 'communication':
-                    this.state.menuLevel1 = 'communication';
+                case 'contact':
+                    this.state.menuLevel1 = 'contact';
                     break;
                 default:
                     this.state.menuLevel1 = 'example';
@@ -58,8 +58,8 @@ class BasicVersion extends Component {
                 case 'deploy':
                     this.setState({menuLevel1: 'my-deploy'});
                     break;
-                case 'communication':
-                    this.setState({menuLevel1: 'communication'});
+                case 'contact':
+                    this.setState({menuLevel1: 'contact'});
                     break;
                 default:
                     this.setState({menuLevel1: 'example'});
@@ -173,8 +173,8 @@ class BasicVersion extends Component {
                                 ''
                         }
 
-                        <Menu.Item key="communication">
-                            <Link to="/common/communication"><FormattedMessage id="Communication"/></Link>
+                        <Menu.Item key="contact">
+                            <Link to="/common/contact"><FormattedMessage id="Contact"/></Link>
                         </Menu.Item>
                     </Menu>
 
@@ -201,7 +201,7 @@ class BasicVersion extends Component {
                         <Route path="/common" exact component={CaseShow}/>
                         <Route path="/common/example" exact component={CaseShow}/>
                         <Route path="/common/deploy" component={MyDeploy}/>
-                        <Route path="/common/communication" component={Communication}/>
+                        <Route path="/common/contact" component={Contact}/>
                     </Switch>
                 </Layout>
 
@@ -264,7 +264,7 @@ class User extends Component {
                                         </Link>
                                     </Menu.Item>
                                     <Menu.Item>
-                                        <Link to="/common/communication">
+                                        <Link to="/common/contact">
                                             <div>
                                                 <FormattedMessage id="Submit Support Ticket"/>
                                             </div>
@@ -300,4 +300,4 @@ class User extends Component {
             </Query>
         )
     }
-}
+}

+ 2 - 2
src/app/basicVersion/communication/Communication.jsx → src/app/basicVersion/contact/Contact.jsx

@@ -8,7 +8,7 @@ import './index.css';
 const {Content} = Layout;
 const { Meta } = Card;
 
-class Communication extends Component{
+class Contact extends Component{
     constructor(){
         super();
         this.state={
@@ -54,4 +54,4 @@ class Communication extends Component{
     }
 }
 
-export default Communication;
+export default Contact;

+ 0 - 0
src/app/basicVersion/communication/index.css → src/app/basicVersion/contact/index.css


+ 2 - 2
src/language/zh_CN.js

@@ -163,7 +163,7 @@ const zh_CN = {
 
     'Example': '案例',
     'My deploy': '我的部署',
-    'Communication': '联系我们',
+    'Contact': '联系我们',
     'loading': '加载中...',
     'nothing': '暂无部署...',
     'new': '新!',
@@ -189,4 +189,4 @@ const zh_CN = {
     'ioobot case': '模板案例',
     'other developer case': '其他开发者提交的案例'
 };
-export default zh_CN;
+export default zh_CN;