diff --git a/source/views/sis/student-work/detail.ios.tsx b/source/views/sis/student-work/detail.ios.tsx index 639b4b04a5..d0b21291a1 100644 --- a/source/views/sis/student-work/detail.ios.tsx +++ b/source/views/sis/student-work/detail.ios.tsx @@ -16,7 +16,6 @@ import type {JobType} from './types' import glamorous from 'glamorous-native' import {ShareButton} from '@frogpond/navigation-buttons' import {shareJob, createJobFullUrl} from './lib' -import {decode} from '@frogpond/html-lib' const styles = StyleSheet.create({ lastUpdated: { @@ -120,7 +119,7 @@ function JobInformation({job}: {job: JobType}) { function Description({job}: {job: JobType}) { return job.description ? (
- +
) : null } @@ -128,7 +127,7 @@ function Description({job}: {job: JobType}) { function Skills({job}: {job: JobType}) { return job.skills ? (
- +
) : null } @@ -136,7 +135,7 @@ function Skills({job}: {job: JobType}) { function Comments({job}: {job: JobType}) { return job.comments ? (
- +
) : null } @@ -152,7 +151,7 @@ function FirstYearAppropriate({job}: {job: JobType}) { function Timeline({job}: {job: JobType}) { return job.timeline ? (
- +
) : null } @@ -171,7 +170,7 @@ function OpenWebpage({job}: {job: JobType}) { function HowToApply({job}: {job: JobType}) { return job.howToApply ? (
- +
) : null } diff --git a/source/views/sis/student-work/job-row.tsx b/source/views/sis/student-work/job-row.tsx index a5360eaa7a..a28a56c77f 100644 --- a/source/views/sis/student-work/job-row.tsx +++ b/source/views/sis/student-work/job-row.tsx @@ -1,7 +1,6 @@ import * as React from 'react' import {Column, Row} from '@frogpond/layout' import {ListRow, Detail, Title} from '@frogpond/lists' -import {fastGetTrimmedText} from '@frogpond/html-lib' import type {JobType} from './types' type Props = { @@ -14,19 +13,16 @@ export class JobRow extends React.PureComponent { render() { let {job} = this.props - let title = fastGetTrimmedText(job.title) - let office = fastGetTrimmedText(job.office) - let hours = fastGetTrimmedText(job.hoursPerWeek) - let ending = hours === 'Full-time' ? '' : 'hrs/week' + let ending = job.hoursPerWeek === 'Full-time' ? '' : 'hrs/week' return ( - {title} - {office} + {job.title} + {job.office} - {hours} {ending} + {job.hoursPerWeek} {ending} diff --git a/source/views/streaming/streams/row.tsx b/source/views/streaming/streams/row.tsx index b7dd2e0444..2b25a26b14 100644 --- a/source/views/streaming/streams/row.tsx +++ b/source/views/streaming/streams/row.tsx @@ -3,7 +3,6 @@ import {StyleSheet, Image} from 'react-native' import {ListRow, Detail, Title} from '@frogpond/lists' import {Column, Row} from '@frogpond/layout' -import {innerTextWithSpaces, parseHtml} from '@frogpond/html-lib' import {trackedOpenUrl} from '@frogpond/open-url' import moment from 'moment' import type {StreamType} from './types' @@ -17,15 +16,13 @@ const styles = StyleSheet.create({ }) function Name({item}: {item: StreamType}) { - let title = innerTextWithSpaces(parseHtml(item.title)) + let {title} = item return title ? {title} : null } function Info({item}: {item: StreamType}) { - let detail = innerTextWithSpaces( - parseHtml(item.subtitle || item.performer || ''), - ) - return detail ? {detail} : null + let {subtitle} = item + return subtitle ? {subtitle} : null } function Time({item}: {item: StreamType}) {