import React, { Component } from "react";
import { connect } from "react-redux";
import { Link } from "react-router-dom";
import { Card, Button, Label } from "semantic-ui-react";
class ClientProfile extends Component {
render() {
const { selfUser } = this.props;
return ;
}
}
function mapStateToProps(state) {
return { ...state.user };
}
const ClientProfileView = ({ user }) => (
Client Information
Business Number: {user.client.business_number}
{(user.client.work_types || []).length &&
{user.client.work_types.map((worktype, index) => (
{" " + worktype.label}
Worktype
))}
}
);
export default connect(mapStateToProps)(ClientProfile);