summaryrefslogtreecommitdiff
path: root/opendc-web/opendc-web-ui/src/containers/auth/ProfileName.js
blob: 06da75abab275f8901ce6dc8ce3bedb7a7b87e08 (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