diff --git a/README.md b/README.md index 69db4f9..cac532d 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,8 @@ CoreUI is meant to be the UX game changer. Pure & transparent code is devoid of * [Versions](#versions) * [CoreUI Pro](#coreui-pro) * [Installation](#installation) -* [Usage](#usage) +* [Create React App](#create-react-app) +* [Usage](#basic-usage) * [What's included](#whats-included) * [Documentation](#documentation) * [Contributing](#contributing) @@ -85,19 +86,19 @@ Within the download you'll find the following directories and files, logically g ``` CoreUI-React#v2.0.0 -├── public/ (static files) -│ ├── assets/ (assets) -│ └── index.html (html temlpate) +├── public/ #static files +│ ├── assets/ #assets +│ └── index.html #html temlpate │ -├── src/ (project root) -│ ├── containers/ (container source) -│ ├── scss/ (scss/css source) -│ ├── views/ (views source) +├── src/ #project root +│ ├── containers/ #container source +│ ├── scss/ #user scss/css source +│ ├── views/ #views source │ ├── App.js │ ├── App.test.js │ ├── index.js -│ ├── _nav.js (sidebar config) -│ └── routes.js (routes config) +│ ├── _nav.js #sidebar config +│ └── routes.js #routes config │ └── package.json ``` @@ -121,12 +122,10 @@ See [the Releases section of our project](https://github.com/mrholek/CoreUI-Reac ## Creators **Łukasz Holeczek** - * * **Andrzej Kopański** - * ## Community diff --git a/src/views/Dashboard/Dashboard.js b/src/views/Dashboard/Dashboard.js index dfcbf97..96dec1f 100644 --- a/src/views/Dashboard/Dashboard.js +++ b/src/views/Dashboard/Dashboard.js @@ -336,11 +336,11 @@ const sparklineChartOpts = { // convert Hex to RGBA function convertHex(hex, opacity) { hex = hex.replace('#', ''); - var r = parseInt(hex.substring(0, 2), 16); - var g = parseInt(hex.substring(2, 4), 16); - var b = parseInt(hex.substring(4, 6), 16); + const r = parseInt(hex.substring(0, 2), 16); + const g = parseInt(hex.substring(2, 4), 16); + const b = parseInt(hex.substring(4, 6), 16); - var result = 'rgba(' + r + ',' + g + ',' + b + ',' + opacity / 100 + ')'; + const result = 'rgba(' + r + ',' + g + ',' + b + ',' + opacity / 100 + ')'; return result; } @@ -349,12 +349,12 @@ function random(min, max) { return Math.floor(Math.random() * (max - min + 1) + min); } -var elements = 27; +const elements = 27; var data1 = []; var data2 = []; var data3 = []; -for (var i = 0; i <= elements; i++) { +for (let i = 0; i <= elements; i++) { data1.push(random(50, 200)); data2.push(random(80, 100)); data3.push(65); @@ -457,8 +457,7 @@ class Dashboard extends Component { - { this.setState({ card1: !this.state.card1 }); }}> + { this.setState({ card1: !this.state.card1 }); }}> @@ -483,8 +482,7 @@ class Dashboard extends Component { - { this.setState({ card2: !this.state.card2 }); }}> + { this.setState({ card2: !this.state.card2 }); }}> @@ -508,8 +506,7 @@ class Dashboard extends Component { - { this.setState({ card3: !this.state.card3 }); }}> + { this.setState({ card3: !this.state.card3 }); }}> @@ -533,8 +530,7 @@ class Dashboard extends Component { - { this.setState({ card4: !this.state.card4 }); }}> + { this.setState({ card4: !this.state.card4 }); }}>