forked from frollic-app/frollic
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added favorites and clipboard features
- Loading branch information
Showing
9 changed files
with
258 additions
and
79 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 |
---|---|---|
@@ -1,15 +1,23 @@ | ||
import React from 'react'; | ||
import { connect } from 'react-redux'; | ||
import * as actions from '../actions/actions'; | ||
|
||
const Navbar = () => { | ||
const mapDispatchToProps = (dispatch) => ({ | ||
toggleFavsPage: () => { | ||
dispatch(actions.toggleFavsPage()); | ||
} | ||
}); | ||
|
||
const Navbar = (props) => { | ||
return ( | ||
<div id="nav"> | ||
<img id="logo" alt="frollic-logo" src="/assets/logo.png"></img> | ||
<a href="/"><img id="logo" alt="frollic-logo" src="/assets/logo.png"></img></a> | ||
<div id="profile-container"> | ||
<button id="profile-icon"> | ||
<button id="profile-icon" onClick={props.toggleFavsPage}> | ||
<img src="https://img.icons8.com/small/32/000000/gender-neutral-user.png"/> | ||
</button> | ||
</div> | ||
</div> | ||
) | ||
} | ||
export default Navbar; | ||
export default connect(null, mapDispatchToProps)(Navbar); |
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
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 |
---|---|---|
@@ -1 +1,5 @@ | ||
export const GET_RESULTS = 'GET_RESULTS'; | ||
export const GET_RESULTS = 'GET_RESULTS'; | ||
export const ADD_FAV = 'ADD_FAV'; | ||
export const TOGGLE_FAVS_PAGE = 'TOGGLE_FAVS_PAGE'; | ||
export const ADD_COMMENT = 'ADD_COMMENT'; | ||
export const TOGGLE_COMMENTS = 'TOGGLE_COMMENTS'; |
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
Oops, something went wrong.