You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
688 B
29 lines
688 B
import React, { Component } from "react"; |
|
import { connect } from "react-redux"; |
|
import { Card } from "semantic-ui-react"; |
|
|
|
class ProviderProfile extends Component { |
|
render() { |
|
const { selfUser } = this.props; |
|
return ( |
|
<ProviderProfileView user={selfUser} /> |
|
); |
|
} |
|
} |
|
|
|
function mapStateToProps(state) { |
|
return { ...state.user }; |
|
} |
|
|
|
const ProviderProfileView = ({ user }) => ( |
|
<div> |
|
<Card fluid={true}> |
|
<Card.Content> |
|
<Card.Header>Provider Information</Card.Header> |
|
<Card.Meta>Social Insurance Number: {user.provider.sin}</Card.Meta> |
|
</Card.Content> |
|
</Card> |
|
</div> |
|
); |
|
|
|
export default connect(mapStateToProps)(ProviderProfile);
|
|
|