Skip to content

Commit

Permalink
feature #12: Add Material-ui button to Users page
Browse files Browse the repository at this point in the history
  • Loading branch information
Boosmith committed Aug 28, 2019
1 parent 91f02f7 commit a896949
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/users/UsersPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import * as userActions from "../../redux/actions/userActions";
import { Redirect } from "react-router-dom";
import Loader from "../common/Loader";
import { toast } from "react-toastify";
import Button from "@material-ui/core/Button";

class UsersPage extends React.Component {
constructor(props) {
Expand Down Expand Up @@ -36,12 +37,13 @@ class UsersPage extends React.Component {
<Loader />
) : (
<>
<button
<Button
variant="contained"
className="btn btn-primary"
onClick={this.redirectToAddUserPage}
>
Add User
</button>
</Button>
<UserList
onDeleteClick={this.handleDeleteUser}
users={this.props.users}
Expand Down

0 comments on commit a896949

Please sign in to comment.