add button and modal dialog for invoice integration

This commit is contained in:
Bilal Catic
2019-07-16 11:23:11 +02:00
parent 5a6bc3cc6f
commit fdd4491e07
3 changed files with 70 additions and 2 deletions

View File

@@ -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>