-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Abby
committed
Jun 28, 2019
1 parent
6e2e6bc
commit f8b139b
Showing
4 changed files
with
70 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import React from 'react'; | ||
|
||
const Faves = ({onFaveToggle}) => { | ||
|
||
const handleClick = (event) => { | ||
event.stopPropagation(); | ||
|
||
console.log(' Fave was clicked',); | ||
onFaveToggle() | ||
} | ||
return ( | ||
<div className="film-row-fave add_to_queue" onClick={handleClick}> | ||
<p className="material-icons"> add_to_que</p> | ||
</div> | ||
) | ||
} | ||
|
||
export default Faves |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters