Ver código fonte

fix style warning

jim 8 anos atrás
pai
commit
ea38c9b945

+ 1 - 0
src/routes/Userinfo/BaseView.less

@@ -2,6 +2,7 @@
 
 .baseView {
   display: flex;
+  margin-top: 12px;
   &.md {
     flex-direction: column-reverse;
     .right {

+ 1 - 1
src/routes/Userinfo/Info.less

@@ -28,7 +28,7 @@
       color: rgba(0, 0, 0, 0.85);
       line-height: 28px;
       font-weight: bold;
-      margin-bottom: 24px;
+      margin-bottom: 12px;
     }
   }
 }

+ 1 - 6
src/routes/Userinfo/MessageView.js

@@ -1,7 +1,7 @@
 import React, { Component, Fragment } from 'react';
 import { Switch, List } from 'antd';
 
-const Action = <Switch defaultChecked />;
+const Action = <Switch checkedChildren="开" unCheckedChildren="关" defaultChecked />;
 
 export default class MessageView extends Component {
   getData = () => {
@@ -12,11 +12,6 @@ export default class MessageView extends Component {
         actions: [Action],
       },
       {
-        title: '消息通知',
-        description: '已绑定手机:138****8293',
-        actions: [Action],
-      },
-      {
         title: '系统消息',
         description: '系统消息将以站内信的形式通知',
         actions: [Action],