forked from Fitomo/FrontEnd-Auth-Service
-
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.
Merge pull request Fitomo#86 from milkpatron/master
Update
- Loading branch information
Showing
23 changed files
with
333 additions
and
139 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,8 @@ | ||
import { connect } from 'react-redux'; | ||
import App from './appPresenter'; | ||
|
||
function mapStateToProps(state) { | ||
const currentUserId = state.user.id; | ||
const user = state.user; | ||
const auth = state.isAuth; | ||
return { | ||
currentUserId, | ||
user, | ||
auth, | ||
}; | ||
function mapStateToProps({ user, isAuth }) { | ||
return { user, isAuth }; | ||
} | ||
|
||
export default connect(mapStateToProps)(App); |
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
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,14 +1,16 @@ | ||
import React, { Component } from 'react'; | ||
import React from 'react'; | ||
import defaultFitomo from '../../images/fitomo-home.png'; | ||
import { | ||
fitomoPic, | ||
} from '../../css/main.css'; | ||
|
||
class ProfilePic extends Component { | ||
render() { | ||
return ( | ||
<section> | ||
<img alt="none" src={this.props.picture}></img> | ||
</section> | ||
); | ||
} | ||
} | ||
const ProfilePic = (props) => ( | ||
<section> | ||
{/* <img alt="none" src={props.picture}></img> */} | ||
<div className={fitomoPic}> | ||
<img src={defaultFitomo} alt="fitomo" /> | ||
</div> | ||
</section> | ||
); | ||
|
||
export default ProfilePic; | ||
|
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
Oops, something went wrong.