Skip to content

Commit a44b204

Browse files
committed
Merge branch 'master' of https://github.com/mrholek/CoreUI-React
2 parents 5d59116 + c12a0fc commit a44b204

File tree

10 files changed

+895
-1580
lines changed

10 files changed

+895
-1580
lines changed

package.json

+11-11
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,27 +12,27 @@
1212
"url": "git@github.com:coreui/coreui-free-react-admin-template.git"
1313
},
1414
"dependencies": {
15-
"@coreui/coreui": "^2.0.0-beta.6",
16-
"@coreui/react": "^2.0.0-beta",
17-
"babel-jest": "^22.4.3",
18-
"bootstrap": "4.0.0",
15+
"@coreui/coreui": "^2.0.0-beta.10",
16+
"@coreui/react": "^2.0.0-beta.1",
17+
"bootstrap": "^4.1.0",
1918
"chart.js": "^2.7.2",
20-
"classnames": "^2.2.3",
19+
"classnames": "^2.2.5",
2120
"flag-icon-css": "^3.0.0",
2221
"font-awesome": "^4.7.0",
23-
"node-sass-chokidar": "^1.2.2",
2422
"prop-types": "^15.6.1",
25-
"react": "^16.3.1",
23+
"react": "^16.3.2",
2624
"react-chartjs-2": "^2.7.0",
27-
"react-dom": "^16.3.1",
25+
"react-dom": "^16.3.2",
2826
"react-router-config": "^1.0.0-beta.4",
2927
"react-router-dom": "^4.2.2",
30-
"react-scripts": "^1.1.4",
3128
"reactstrap": "^5.0.0",
3229
"simple-line-icons": "^2.4.1"
3330
},
3431
"devDependencies": {
35-
"npm-run-all": "^4.1.2"
32+
"babel-jest": "^22.4.3",
33+
"node-sass-chokidar": "^1.2.2",
34+
"npm-run-all": "^4.1.2",
35+
"react-scripts": "^1.1.4"
3636
},
3737
"scripts": {
3838
"build-css": "node-sass-chokidar --include-path ./src --include-path ./node_modules src/ -o src/",

src/containers/Full/FullAside.js

+9-21
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

+1-1
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)