File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
source/views/building-hours/report Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import moment from 'moment-timezone'
1010import { CellTextField } from '../../components/cells/textfield'
1111import { CellToggle } from '../../components/cells/toggle'
1212import { DeleteButtonCell } from '../../components/cells/delete-button'
13+ import { ButtonCell } from '../../components/cells/button'
1314import { TableView , Section , Cell } from 'react-native-tableview-simple'
1415import 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 )
You can’t perform that action at this time.
0 commit comments