Skip to content

Commit 4950693

Browse files
committed
break up ios information into contact and job info
1 parent 406bb6d commit 4950693

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

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

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const Title = glamorous.text({
3030
marginVertical: 10,
3131
})
3232

33-
function Information({job}: {job: JobType}) {
33+
function ContactInformation({job}: {job: JobType}) {
3434
const office = job.office ? (
3535
<Cell cellStyle="LeftDetail" detail="Office" title={job.office} />
3636
) : null
@@ -64,6 +64,17 @@ function Information({job}: {job: JobType}) {
6464
/>
6565
) : null
6666

67+
return (
68+
<Section header="CONTACT INFORMATION">
69+
{office}
70+
{contactName}
71+
{contactEmail}
72+
{contactPhone}
73+
</Section>
74+
)
75+
}
76+
77+
function JobInformation({job}: {job: JobType}) {
6778
const ending = job.hoursPerWeek === 'Full-time' ? '' : ' hrs/week'
6879
const hours = job.hoursPerWeek ? (
6980
<Cell
@@ -90,11 +101,7 @@ function Information({job}: {job: JobType}) {
90101
) : null
91102

92103
return (
93-
<Section header="INFORMATION">
94-
{office}
95-
{contactName}
96-
{contactEmail}
97-
{contactPhone}
104+
<Section header="JOB INFORMATION">
98105
{hours}
99106
{amount}
100107
{year}
@@ -182,7 +189,8 @@ export class JobDetailView extends React.PureComponent<Props> {
182189
<ScrollView>
183190
<Title selectable={true}>{job.title}</Title>
184191
<TableView>
185-
<Information job={job} />
192+
<ContactInformation job={job} />
193+
<JobInformation job={job} />
186194
<FirstYearAppropriate job={job} />
187195
<Description job={job} />
188196
<Skills job={job} />

0 commit comments

Comments
 (0)