Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small fixes and updates #15

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@ yarn-debug.log*
yarn-error.log*

.idea
.vscode/
.vscode/
src/**/*.css
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
# 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)

## 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)
6 changes: 3 additions & 3 deletions src/components/Pagination/Pagination.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<div className="pagination">
<button><span>first</span></button>
<button className="arrow"><Icon name="angle left"/></button>
<div className="page-numbers">
{pages.map(number => {
return <button><span>{number}</span></button>
return <button key={number}><span>{number}</span></button>
})}
</div>
<button className="arrow"><Icon name="angle right"/></button>
Expand All @@ -19,4 +19,4 @@ const Pagination = () => {
);
}

export default Pagination;
export default Pagination;
File renamed without changes.