From ce3a81ad5f30d10352c29cac320c605d11b312f8 Mon Sep 17 00:00:00 2001 From: emelko Date: Wed, 30 Jan 2019 17:44:43 +0100 Subject: [PATCH] Hyperlink activation --- components/cycle-day/symptoms/info-symptom.js | 12 +++++++++--- i18n/en/settings.js | 2 +- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/components/cycle-day/symptoms/info-symptom.js b/components/cycle-day/symptoms/info-symptom.js index cf73543..865a47f 100644 --- a/components/cycle-day/symptoms/info-symptom.js +++ b/components/cycle-day/symptoms/info-symptom.js @@ -1,8 +1,11 @@ import React, { Component } from 'react' import { ScrollView } from 'react-native' +import Hyperlink from 'react-native-hyperlink' import AppText from '../../app-text' -import * as labels from '../../../i18n/en/symptom-info.js' +import labels from '../../../i18n/en/symptom-info.js' import SettingsSegment from '../../settings/shared/settings-segment' +import styles from '../../../styles/index' +import replace from '../../helpers/replace-url-with-text' export default class InfoSymptom extends Component { render() { @@ -11,6 +14,7 @@ export default class InfoSymptom extends Component { BleedingEditView: 'bleeding', CervixEditView: 'cervix', DesireEditView: 'desire', + MoodEditView: 'mood', MucusEditView: 'mucus', NoteEditView: 'note', PainEditView: 'pain', @@ -21,8 +25,10 @@ export default class InfoSymptom extends Component { return ( - - {labels.symptomInfo[currentSymptom]} + + + {labels[currentSymptom].text} + ) diff --git a/i18n/en/settings.js b/i18n/en/settings.js index ad6dd47..2f18fcf 100644 --- a/i18n/en/settings.js +++ b/i18n/en/settings.js @@ -9,7 +9,7 @@ export const links = { text: 'email' }, wiki: { - url: 'https://gitlab.com/bloodyhealth/drip/wikis/home', + url: 'https://gitlab.com/bloodyhealth/drip/wikis/', text: 'wiki' }, website: {