blob: 8511a9b15a02583bd2b27a14ef04f97270e59358 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
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
|