add button and modal dialog for invoice integration
This commit is contained in:
@@ -5,6 +5,7 @@ import { Container } from 'semantic-ui-react';
|
||||
import MainMenu from '../../components/MainMenu';
|
||||
import DateRangePicker from '../../components/DateRangePicker';
|
||||
import MemberIncidentsTables from '../../components/MemberIncidentsTables';
|
||||
import GenerateFeesInORDButton from '../../components/GenerateFeesInORDButton';
|
||||
|
||||
import { fetchIncidents } from '../../store/actions';
|
||||
|
||||
@@ -14,6 +15,8 @@ class IncidentsReport extends Component {
|
||||
fetchIncidents(dateRange);
|
||||
}
|
||||
|
||||
onAddFeesClick = () => {};
|
||||
|
||||
render () {
|
||||
const { pendingIncidents, incidents } = this.props;
|
||||
|
||||
@@ -22,7 +25,14 @@ class IncidentsReport extends Component {
|
||||
<MainMenu/>
|
||||
<h3>Incidents Report</h3>
|
||||
<hr/>
|
||||
<DateRangePicker buttonLabel="Show report" onDatesUpdate={this.onDatesUpdate.bind(this)} />
|
||||
<DateRangePicker buttonLabel="Show report" onDatesUpdate={this.onDatesUpdate.bind(this)} inlineButton />
|
||||
<br/>
|
||||
<GenerateFeesInORDButton
|
||||
disabled={pendingIncidents}
|
||||
onConfirm={this.onAddFeesClick}
|
||||
/>
|
||||
<br/><br/>
|
||||
<hr/>
|
||||
<br/>
|
||||
<MemberIncidentsTables pendingIncidents={pendingIncidents} incidents={incidents} />
|
||||
</Container>
|
||||
|
||||
@@ -7,6 +7,7 @@ import DateRangePicker from '../../components/DateRangePicker';
|
||||
import MemberSelector from './components/MemberSelector';
|
||||
import MemberSummary from './components/MemberSummary';
|
||||
import MemberIncidentsTables from '../../components/MemberIncidentsTables';
|
||||
import GenerateFeesInORDButton from '../../components/GenerateFeesInORDButton';
|
||||
|
||||
import { fetchMemberIncidents } from '../../store/actions';
|
||||
|
||||
@@ -38,9 +39,13 @@ class PracticeSummaryReport extends Component {
|
||||
}
|
||||
}
|
||||
|
||||
onAddFeesClick = () => {};
|
||||
|
||||
render () {
|
||||
const { memberIncidents, loading } = this.props;
|
||||
const { memberId } = this.state;
|
||||
const { memberId, dateRange } = this.state;
|
||||
|
||||
const addFeesButtonDisabled = !memberId || !dateRange || loading;
|
||||
|
||||
return (
|
||||
<Container>
|
||||
@@ -64,6 +69,15 @@ class PracticeSummaryReport extends Component {
|
||||
/>
|
||||
</Grid.Column>
|
||||
</Grid.Row>
|
||||
<Grid.Row>
|
||||
<Grid.Column>
|
||||
<GenerateFeesInORDButton
|
||||
singleMember
|
||||
disabled={addFeesButtonDisabled}
|
||||
onConfirm={this.onAddFeesClick}
|
||||
/>
|
||||
</Grid.Column>
|
||||
</Grid.Row>
|
||||
<Grid.Row/>
|
||||
<Grid.Row>
|
||||
<Grid.Column>
|
||||
|
||||
Reference in New Issue
Block a user