import React from 'react'; import { Row, Col, Button } from 'react-bootstrap'; import { Card, RemoteForm, Fa } from '../../components'; import { app } from '../../core/app'; import { hasPerm } from '../session'; import Events from './events'; import CasePrevTbTreats from './case-prev-tb-treats'; import CaseContacts from './case-contacts'; import CaseAdvReacts from './case-adv-reacts'; import CaseComorbidities from './case-comorbidities'; import CaseComments from './case-comments'; export default class CaseData extends React.Component { onEditClick() { app.dispatch(Events.caseEditForm); } render() { const tbcase = this.props.tbcase; if (!tbcase) { return null; } const path = '/api/tbl/case/form/readonly/' + tbcase.id; const editBtn = ( ); return (
{ hasPerm('ADV_EFFECTS') && } { hasPerm('COMIRBIDITIES') && } { } { hasPerm('CASECONTACT') && }
); } } CaseData.propTypes = { tbcase: React.PropTypes.object, onLoad: React.PropTypes.any };