Skip to content

Commit

Permalink
bug-fix (modal): Testing modals
Browse files Browse the repository at this point in the history
  • Loading branch information
Benny Ogidan authored and Benny Ogidan committed Dec 20, 2017
1 parent 8422f87 commit e3122d3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ class DisplayAllBooks extends React.Component {
<Button
floating
onClick={() => this.handleClick()}
className="#ef6c00 orange darken-3 add-book-btn"
className="#ef6c00 orange darken-3 add-book-btn modal-trigger"
href="#add-admin-book-modal"
waves="light"
icon="add"
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ class Book extends React.Component {
this
.props
.fetchSelectedBook(book.id);
$('#admin-book-modal').modal('open');
// $('#admin-book-modal').modal('open');
}
/**
*
Expand All @@ -123,8 +123,9 @@ class Book extends React.Component {
<Button
floating
icon="mode_edit"
href="#admin-book-modal"
onClick={() => this.handleEdit(this.props.book)}
className="#f57c00 orange darken-2 book-icons-1"
className="#f57c00 orange darken-2 book-icons-1 modal-trigger"
waves="light"
>
Edit
Expand All @@ -144,6 +145,7 @@ class Book extends React.Component {
</div>
<div className="card">
<a
className="modal-trigger"
href="#modal"
onClick={() => this.handleBookClick(this.props.book)}
tabIndex="-1"
Expand Down

0 comments on commit e3122d3

Please sign in to comment.