Skip to content

Commit 0c557ad

Browse files
committed
port BuildingHoursReportProblemView to new communication methods
1 parent 8a1cb75 commit 0c557ad

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

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

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import jsYaml from 'js-yaml'
44
import type {BuildingType} from '../types'
5-
import {email} from 'react-native-communications'
5+
import {sendEmail} from '../../components/send-email'
66
import querystring from 'querystring'
77
import {GH_NEW_ISSUE_URL} from '../../../globals'
88

@@ -13,13 +13,11 @@ export function submitReport(current: BuildingType, suggestion: BuildingType) {
1313

1414
const body = makeEmailBody(before, after, current.name)
1515

16-
return email(
17-
18-
[],
19-
[],
20-
`[building] Suggestion for ${current.name}`,
16+
return sendEmail({
17+
18+
subject: `[building] Suggestion for ${current.name}`,
2119
body,
22-
)
20+
})
2321
}
2422

2523
function makeEmailBody(before: string, after: string, title: string): string {

0 commit comments

Comments
 (0)