parent
0e6fb475b7
commit
0ae0a92187
7 changed files with 118 additions and 50 deletions
@ -0,0 +1,29 @@ |
|||||||
|
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); |
Loading…
Reference in new issue