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