浏览代码

fix the BtnSwitch text

AlexiCauvin 7 年前
父节点
当前提交
e354b3bef2
共有 2 个文件被更改,包括 2 次插入1 次删除
  1. 1 1
      src/component/Input/BtnSwitch/BtnSwitch.jsx
  2. 1 0
      src/component/Input/BtnSwitch/BtnSwitch.styl

+ 1 - 1
src/component/Input/BtnSwitch/BtnSwitch.jsx 查看文件

9
       <span className='slider round' />
9
       <span className='slider round' />
10
     </label>
10
     </label>
11
     <div className='btnswitch__text'>
11
     <div className='btnswitch__text'>
12
-      { props.checked ? 'On' : 'Off'}
12
+      { props.checked ? 'Actif' : 'Inactif'}
13
     </div>
13
     </div>
14
   </div>
14
   </div>
15
 
15
 

+ 1 - 0
src/component/Input/BtnSwitch/BtnSwitch.styl 查看文件

9
 .switch
9
 .switch
10
   position relative
10
   position relative
11
   display inline-block
11
   display inline-block
12
+  margin-bottom 0
12
   width 60px
13
   width 60px
13
   height 34px
14
   height 34px
14
 
15