Skip to content

Commit c12a0fc

Browse files
authored
Merge pull request #66 from coreui/dev-v2
v2.0.0-beta.1
2 parents 3f7db41 + 7faaa9f commit c12a0fc

File tree

6 files changed

+591
-932
lines changed

6 files changed

+591
-932
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@coreui/coreui-free-react-admin-template",
3-
"version": "2.0.0-beta",
3+
"version": "2.0.0-beta.1",
44
"description": "CoreUI React Open Source Bootstrap 4 Admin Template",
55
"author": "Łukasz Holeczek",
66
"homepage": "https://coreui.io",
@@ -12,8 +12,8 @@
1212
"url": "[email protected]:coreui/coreui-free-react-admin-template.git"
1313
},
1414
"dependencies": {
15-
"@coreui/coreui": "^2.0.0-beta.8",
16-
"@coreui/react": "^2.0.0-beta",
15+
"@coreui/coreui": "^2.0.0-beta.10",
16+
"@coreui/react": "^2.0.0-beta.1",
1717
"bootstrap": "^4.1.0",
1818
"chart.js": "^2.7.2",
1919
"classnames": "^2.2.5",

src/containers/Full/FullAside.js

Lines changed: 9 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
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';
33
import PropTypes from 'prop-types';
44
import classNames from 'classnames';
5+
import { AppSwitch } from '@coreui/react'
56

67
const propTypes = {
78
children: PropTypes.node,
@@ -239,11 +240,7 @@ class FullAside extends Component {
239240
<div className="aside-options">
240241
<div className="clearfix mt-4">
241242
<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'}/>
247244
</div>
248245
<div>
249246
<small className="text-muted">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
@@ -255,11 +252,7 @@ class FullAside extends Component {
255252
<div className="aside-options">
256253
<div className="clearfix mt-3">
257254
<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'}/>
263256
</div>
264257
<div>
265258
<small className="text-muted">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
@@ -271,22 +264,17 @@ class FullAside extends Component {
271264
<div className="aside-options">
272265
<div className="clearfix mt-3">
273266
<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>
279271
</div>
280272
</div>
281273

282274
<div className="aside-options">
283275
<div className="clearfix mt-3">
284276
<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'} />
290278
</div>
291279
</div>
292280

src/routes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ const routes = [
4444
{ path: '/base', exact: true, name: 'Base', component: Cards },
4545
{ path: '/base/cards', name: 'Cards', component: Cards },
4646
{ path: '/base/forms', name: 'Forms', component: Forms },
47-
{ path: '/base/switches', name: 'Swithces', component: Switches },
47+
{ path: '/base/switches', name: 'Switches', component: Switches },
4848
{ path: '/base/tables', name: 'Tables', component: Tables },
4949
{ path: '/base/tabs', name: 'Tabs', component: Tabs },
5050
{ path: '/base/breadcrumbs', name: 'Breadcrumbs', component: Breadcrumbs },

0 commit comments

Comments
 (0)