diff options
| author | Georgios Andreadis <g.andreadis@student.tudelft.nl> | 2017-08-15 23:24:28 +0300 |
|---|---|---|
| committer | Georgios Andreadis <g.andreadis@student.tudelft.nl> | 2017-09-23 10:05:42 +0200 |
| commit | 91c8088e1d7def9242f60c708cd34f25dcb77d76 (patch) | |
| tree | b68065019692cea5cf6c3d14b811104aff2f0879 /src/containers/auth/ProfileName.js | |
| parent | d7512ace72448242b392299cf459c9c72c8dbee5 (diff) | |
Connect to backend and fetch initial project data
Diffstat (limited to 'src/containers/auth/ProfileName.js')
| -rw-r--r-- | src/containers/auth/ProfileName.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/containers/auth/ProfileName.js b/src/containers/auth/ProfileName.js new file mode 100644 index 00000000..27df133c --- /dev/null +++ b/src/containers/auth/ProfileName.js @@ -0,0 +1,16 @@ +import React from "react"; +import {connect} from "react-redux"; + +const mapStateToProps = state => { + return { + text: state.auth.givenName + " " + state.auth.familyName + }; +}; + +const SpanElement = ({text}) => <span>{text}</span>; + +const ProfileName = connect( + mapStateToProps +)(SpanElement); + +export default ProfileName; |
