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
1c674b39
Commit
1c674b39
authored
6 years ago
by
Julia Friesel
Browse files
Options
Downloads
Patches
Plain Diff
Add mock for getCycleDay
parent
a5265cb9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
bleeding.js
+2
-0
2 additions, 0 deletions
bleeding.js
day-view.js
+2
-0
2 additions, 0 deletions
day-view.js
get-cycle-day.js
+1
-0
1 addition, 0 deletions
get-cycle-day.js
home.js
+2
-1
2 additions, 1 deletion
home.js
with
7 additions
and
1 deletion
bleeding.js
+
2
−
0
View file @
1c674b39
...
...
@@ -9,6 +9,7 @@ import styles from './styles'
import
{
saveBleeding
}
from
'
./db
'
import
{
formatDateForViewHeader
}
from
'
./format
'
import
{
bleeding
as
labels
}
from
'
./labels
'
import
getCycleDay
from
'
./get-cycle-day
'
export
default
class
Bleeding
extends
Component
{
constructor
(
props
)
{
...
...
@@ -27,6 +28,7 @@ export default class Bleeding extends Component {
return
(
<
View
style
=
{
styles
.
container
}
>
<
Text
style
=
{
styles
.
welcome
}
>
{
formatDateForViewHeader
(
day
.
date
)}
<
/Text
>
<
Text
>
Cycle
day
{
getCycleDay
()}
<
/Text
>
<
Text
>
Bleeding
<
/Text
>
<
Picker
selectedValue
=
{
this
.
state
.
currentValue
}
...
...
This diff is collapsed.
Click to expand it.
day-view.js
+
2
−
0
View file @
1c674b39
...
...
@@ -7,6 +7,7 @@ import {
import
styles
from
'
./styles
'
import
{
formatDateForViewHeader
}
from
'
./format
'
import
{
bleeding
as
labels
}
from
'
./labels
'
import
getCycleDay
from
'
./get-cycle-day
'
export
default
class
DayView
extends
Component
{
constructor
(
props
)
{
...
...
@@ -30,6 +31,7 @@ export default class DayView extends Component {
return
(
<
View
style
=
{
styles
.
container
}
>
<
Text
style
=
{
styles
.
welcome
}
>
{
formatDateForViewHeader
(
day
.
date
)}
<
/Text
>
<
Text
>
Cycle
day
{
getCycleDay
()}
<
/Text
>
<
Text
style
=
{
styles
.
welcome
}
>
{
bleedingLabel
}
<
/Text
>
<
Button
onPress
=
{()
=>
navigate
(
'
bleeding
'
,
{
cycleDay
:
day
})}
...
...
This diff is collapsed.
Click to expand it.
get-cycle-day.js
0 → 100644
+
1
−
0
View file @
1c674b39
export
default
()
=>
6
\ No newline at end of file
This diff is collapsed.
Click to expand it.
home.js
+
2
−
1
View file @
1c674b39
...
...
@@ -5,6 +5,7 @@ import {
Text
}
from
'
react-native
'
import
styles
from
'
./styles
'
import
getCycleDay
from
'
./get-cycle-day
'
export
default
class
Home
extends
Component
{
constructor
(
props
)
{
...
...
@@ -15,7 +16,7 @@ export default class Home extends Component {
const
navigate
=
this
.
props
.
navigation
.
navigate
return
(
<
View
style
=
{
styles
.
container
}
>
<
Text
style
=
{
styles
.
welcome
}
>
Welcome
!
Today
is
day
6
of
your
current
cycle
<
/Text
>
<
Text
style
=
{
styles
.
welcome
}
>
Welcome
!
Today
is
day
{
getCycleDay
()}
of
your
current
cycle
<
/Text
>
<
Button
onPress
=
{()
=>
navigate
(
'
temperatureList
'
)}
title
=
"
Edit symptoms for today
"
>
...
...
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