Skip to content

Commit e079c01

Browse files
committed
update student work view
- add the job title to the headers - change the back button title to "Open Jobs" instead of "SIS"
1 parent d1908df commit e079c01

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

source/views/sis/student-work/detail.ios.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,3 +128,9 @@ export default function JobDetailView(props: {
128128
</ScrollView>
129129
)
130130
}
131+
JobDetailView.navigationOptions = ({navigation}) => {
132+
const {job} = navigation.state.params
133+
return {
134+
title: job.title,
135+
}
136+
}

source/views/sis/student-work/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ const styles = StyleSheet.create({
4141

4242
export default class StudentWorkView extends React.Component {
4343
static navigationOptions = {
44+
headerBackTitle: 'Open Jobs',
4445
tabBarLabel: 'Open Jobs',
4546
tabBarIcon: TabBarIcon('briefcase'),
4647
}

0 commit comments

Comments
 (0)