From 6aa69ba8db24959137f170c3e509b2e0f6cec5f1 Mon Sep 17 00:00:00 2001 From: Niklas Dahlheimer Date: Mon, 1 Feb 2021 10:40:57 +0100 Subject: [PATCH 1/5] add key for Pagination items --- src/components/Pagination/Pagination.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/Pagination/Pagination.js b/src/components/Pagination/Pagination.js index e12a824..1780c60 100644 --- a/src/components/Pagination/Pagination.js +++ b/src/components/Pagination/Pagination.js @@ -3,14 +3,14 @@ import { Icon } from 'semantic-ui-react'; import './Pagination.css'; const Pagination = () => { - const pages = [1, 2, 3, 4, 5] + const pages = [1, 2, 3, 4, 5]; return (
{pages.map(number => { - return + return })}
@@ -19,4 +19,4 @@ const Pagination = () => { ); } -export default Pagination; \ No newline at end of file +export default Pagination; From 74e4890d09fa1e9f68f50fc6f9e24c957462b1a5 Mon Sep 17 00:00:00 2001 From: Niklas Dahlheimer Date: Mon, 1 Feb 2021 10:49:10 +0100 Subject: [PATCH 2/5] change index.css to index.scss to get compiled by Sass --- src/{index.css => index.scss} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename src/{index.css => index.scss} (100%) diff --git a/src/index.css b/src/index.scss similarity index 100% rename from src/index.css rename to src/index.scss From e053d33ba416ba6242ca769ba781f1b604c5612e Mon Sep 17 00:00:00 2001 From: Niklas Dahlheimer Date: Mon, 1 Feb 2021 10:49:55 +0100 Subject: [PATCH 3/5] ignore all css files in src/ because they are compiled by Sass and should not be added to git --- .gitignore | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 0373857..dc8bf48 100644 --- a/.gitignore +++ b/.gitignore @@ -21,4 +21,5 @@ yarn-debug.log* yarn-error.log* .idea -.vscode/ \ No newline at end of file +.vscode/ +src/**/*.css From 25eb3283dd494f323903925b1e1daef2fa2357d2 Mon Sep 17 00:00:00 2001 From: Niklas Dahlheimer Date: Mon, 1 Feb 2021 10:55:37 +0100 Subject: [PATCH 4/5] add info to install native build tools before compiling --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 2aa88cd..0e69822 100644 --- a/README.md +++ b/README.md @@ -7,12 +7,14 @@ ![Imgur](https://i.imgur.com/UwcmWc7.gif) ## Installation - ``` $ git clone https://github.com/jyhwng/dashboard.git $ cd dashboard $ npm install $ npm start ``` +**Note**\ +The package contains native node modules. You need to have build tools for node (i.e. Python and Visual Studio Build Tools for Node) installed. + by [@jyhwng](https://github.com/jyhwng) From 3bbc07d53b508f4e725b9078e7796713bdc7bb54 Mon Sep 17 00:00:00 2001 From: Niklas Dahlheimer Date: Mon, 1 Feb 2021 10:59:31 +0100 Subject: [PATCH 5/5] fix links to recharts and react-big-calendar --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0e69822..1bf37e4 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ # React dashboard with Semantic UI & Recharts - Simple UI including range picker, dropdown, accordion and more -- Sample charts with [Recharts](http://recharts.org/en-US) -- Calendar with [Big Calendar](http://intljusticemission.github.io/react-big-calendar/examples/index.html) +- Sample charts with [Recharts](https://recharts.org/en-US/) +- Calendar with [Big Calendar](https://github.com/jquense/react-big-calendar) ![Imgur](https://i.imgur.com/UwcmWc7.gif)