1
1
import React , { Component } from 'react' ;
2
- import { Input , Label , Nav , NavItem , NavLink , Progress , TabContent , TabPane , ListGroup , ListGroupItem } from 'reactstrap' ;
2
+ import { Nav , NavItem , NavLink , Progress , TabContent , TabPane , ListGroup , ListGroupItem } from 'reactstrap' ;
3
3
import PropTypes from 'prop-types' ;
4
4
import classNames from 'classnames' ;
5
+ import { AppSwitch } from '@coreui/react'
5
6
6
7
const propTypes = {
7
8
children : PropTypes . node ,
@@ -239,11 +240,7 @@ class FullAside extends Component {
239
240
< div className = "aside-options" >
240
241
< div className = "clearfix mt-4" >
241
242
< small > < b > Option 1</ b > </ small >
242
- < Label className = "switch switch-text switch-pill switch-success switch-sm float-right" >
243
- < Input type = "checkbox" className = "switch-input" defaultChecked />
244
- < span className = "switch-label" data-on = "On" data-off = "Off" > </ span >
245
- < span className = "switch-handle" > </ span >
246
- </ Label >
243
+ < AppSwitch className = { 'float-right' } variant = { 'pill' } label color = { 'success' } defaultChecked size = { 'sm' } />
247
244
</ div >
248
245
< div >
249
246
< small className = "text-muted" > Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
@@ -255,11 +252,7 @@ class FullAside extends Component {
255
252
< div className = "aside-options" >
256
253
< div className = "clearfix mt-3" >
257
254
< small > < b > Option 2</ b > </ small >
258
- < Label className = "switch switch-text switch-pill switch-success switch-sm float-right" >
259
- < Input type = "checkbox" className = "switch-input" />
260
- < span className = "switch-label" data-on = "On" data-off = "Off" > </ span >
261
- < span className = "switch-handle" > </ span >
262
- </ Label >
255
+ < AppSwitch className = { 'float-right' } variant = { 'pill' } label color = { 'success' } size = { 'sm' } />
263
256
</ div >
264
257
< div >
265
258
< small className = "text-muted" > Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
@@ -271,22 +264,17 @@ class FullAside extends Component {
271
264
< div className = "aside-options" >
272
265
< div className = "clearfix mt-3" >
273
266
< small > < b > Option 3</ b > </ small >
274
- < Label className = "switch switch-text switch-pill switch-success switch-sm float-right" >
275
- < Input type = "checkbox" className = "switch-input" />
276
- < span className = "switch-label" data-on = "On" data-off = "Off" > </ span >
277
- < span className = "switch-handle" > </ span >
278
- </ Label >
267
+ < AppSwitch className = { 'float-right' } variant = { 'pill' } label color = { 'success' } defaultChecked size = { 'sm' } disabled />
268
+ < div >
269
+ < small className = "text-muted" > Option disabled.</ small >
270
+ </ div >
279
271
</ div >
280
272
</ div >
281
273
282
274
< div className = "aside-options" >
283
275
< div className = "clearfix mt-3" >
284
276
< small > < b > Option 4</ b > </ small >
285
- < Label className = "switch switch-text switch-pill switch-success switch-sm float-right" >
286
- < Input type = "checkbox" className = "switch-input" defaultChecked />
287
- < span className = "switch-label" data-on = "On" data-off = "Off" > </ span >
288
- < span className = "switch-handle" > </ span >
289
- </ Label >
277
+ < AppSwitch className = { 'float-right' } variant = { 'pill' } label color = { 'success' } defaultChecked size = { 'sm' } />
290
278
</ div >
291
279
</ div >
292
280
0 commit comments