Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Drip
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
backup
Drip
Commits
de858fe8
Commit
de858fe8
authored
6 years ago
by
Julia Friesel
Browse files
Options
Downloads
Patches
Plain Diff
Style temp reminder setting
parent
a5b7e106
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
components/labels.js
+2
-1
2 additions, 1 deletion
components/labels.js
components/settings.js
+15
-8
15 additions, 8 deletions
components/settings.js
with
17 additions
and
9 deletions
components/labels.js
+
2
−
1
View file @
de858fe8
...
...
@@ -45,7 +45,8 @@ export const settings = {
},
tempReminder
:
{
title
:
'
Temperature reminder
'
,
explainer
:
'
Set a morning reminder to take your temperature
'
noTimeSet
:
'
Set a time for a daily reminder to take your temperature
'
,
timeSet
:
time
=>
`Daily reminder set for
${
time
}
`
}
}
...
...
This diff is collapsed.
Click to expand it.
components/settings.js
+
15
−
8
View file @
de858fe8
...
...
@@ -5,8 +5,7 @@ import {
ScrollView
,
Alert
,
Text
,
TextInput
,
Keyboard
Switch
}
from
'
react-native
'
import
DateTimePicker
from
'
react-native-modal-datetime-picker-nevo
'
import
Slider
from
'
@ptomasroos/react-native-multi-slider
'
...
...
@@ -36,12 +35,20 @@ export default class Settings extends Component {
<
Text
style
=
{
styles
.
settingsSegmentTitle
}
>
{
settingsLabels
.
tempReminder
.
title
}
<
/Text
>
{
this
.
state
.
time
?
<
Text
>
{
settingsLabels
.
tempReminder
.
explainerChange
}
<
/Text
>
:
<
Text
>
{
settingsLabels
.
tempReminder
.
explainer
}
<
/Text
>
}
<
Text
>
{
this
.
state
.
time
}
<
/Text
>
<
View
style
=
{{
flexDirection
:
'
row
'
,
alignItems
:
'
center
'
}}
>
<
View
style
=
{{
flex
:
1
}}
>
{
this
.
state
.
time
?
<
Text
>
{
settingsLabels
.
tempReminder
.
timeSet
(
this
.
state
.
time
)}
<
/Text
>
:
<
Text
>
{
settingsLabels
.
tempReminder
.
noTimeSet
}
<
/Text
>
}
<
/View
>
<
Switch
value
=
{
this
.
state
.
tempReminderEnabled
}
onValueChange
=
{
val
=>
this
.
setState
({
tempReminderEnabled
:
val
})}
onTintColor
=
{
secondaryColor
}
/
>
<
/View
>
<
DateTimePicker
mode
=
"
time
"
isVisible
=
{
this
.
state
.
isTimePickerVisible
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment