summaryrefslogtreecommitdiff
path: root/frontend/src/containers/auth/ProfileName.js
blob: 21941bd2d2e5b46dc422321fa02566d2096d0b20 (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;