Skip to content

Commit 7432a5e

Browse files
committed
add a button to "submit" the report
1 parent 0ff5865 commit 7432a5e

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

source/views/building-hours/report/overview.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import moment from 'moment-timezone'
1010
import {CellTextField} from '../../components/cells/textfield'
1111
import {CellToggle} from '../../components/cells/toggle'
1212
import {DeleteButtonCell} from '../../components/cells/delete-button'
13+
import {ButtonCell} from '../../components/cells/button'
1314
import {TableView, Section, Cell} from 'react-native-tableview-simple'
1415
import type {
1516
BuildingType,
@@ -156,6 +157,10 @@ export class BuildingHoursProblemReportView extends React.PureComponent {
156157
})
157158
}
158159

160+
submit = () => {
161+
console.log(JSON.stringify(this.state.building))
162+
}
163+
159164
render() {
160165
const {schedule: schedules = []} = this.state.building
161166

@@ -186,6 +191,13 @@ export class BuildingHoursProblemReportView extends React.PureComponent {
186191
onPress={this.addSchedule}
187192
/>
188193
</Section>
194+
195+
<Section footer="Thanks for reporting!">
196+
<ButtonCell
197+
title="Submit Report"
198+
onPress={this.submit}
199+
/>
200+
</Section>
189201
</TableView>
190202
</ScrollView>
191203
)

0 commit comments

Comments
 (0)