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
1b11b24a
Commit
1b11b24a
authored
6 years ago
by
tina
Browse files
Options
Downloads
Patches
Plain Diff
enables back button on symptom view
parent
c06bfa2c
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
components/app.js
+6
-0
6 additions, 0 deletions
components/app.js
components/cycle-day/symptoms/bleeding.js
+0
-10
0 additions, 10 deletions
components/cycle-day/symptoms/bleeding.js
components/header.js
+0
-4
0 additions, 4 deletions
components/header.js
with
6 additions
and
14 deletions
components/app.js
+
6
−
0
View file @
1b11b24a
...
@@ -60,6 +60,12 @@ export default class App extends Component {
...
@@ -60,6 +60,12 @@ export default class App extends Component {
<
Header
<
Header
title
=
{
titles
[
this
.
state
.
currentPage
]}
title
=
{
titles
[
this
.
state
.
currentPage
]}
/>
}
/>
}
{
isSymptomView
(
this
.
state
.
currentPage
)
&&
<
Header
title
=
{
titles
[
this
.
state
.
currentPage
]}
isSymptomView
=
{
true
}
goBack
=
{
this
.
handleBackButtonPress
}
/>
}
{
React
.
createElement
(
page
,
{
{
React
.
createElement
(
page
,
{
navigate
:
this
.
navigate
,
navigate
:
this
.
navigate
,
...
...
This diff is collapsed.
Click to expand it.
components/cycle-day/symptoms/bleeding.js
+
0
−
10
View file @
1b11b24a
...
@@ -10,7 +10,6 @@ import { bleeding as labels } from '../labels/labels'
...
@@ -10,7 +10,6 @@ import { bleeding as labels } from '../labels/labels'
import
ActionButtonFooter
from
'
./action-button-footer
'
import
ActionButtonFooter
from
'
./action-button-footer
'
import
SelectTabGroup
from
'
../select-tab-group
'
import
SelectTabGroup
from
'
../select-tab-group
'
import
SymptomSection
from
'
./symptom-section
'
import
SymptomSection
from
'
./symptom-section
'
import
Header
from
'
../../header
'
export
default
class
Bleeding
extends
Component
{
export
default
class
Bleeding
extends
Component
{
constructor
(
props
)
{
constructor
(
props
)
{
...
@@ -32,15 +31,6 @@ export default class Bleeding extends Component {
...
@@ -32,15 +31,6 @@ export default class Bleeding extends Component {
]
]
return
(
return
(
<
View
style
=
{{
flex
:
1
}}
>
<
View
style
=
{{
flex
:
1
}}
>
<
Header
title
=
{
'
Bleeding
'
}
isSymptomView
=
{
true
}
goBack
=
{()
=>
this
.
props
.
navigate
(
'
CycleDay
'
,
this
.
props
.
cycleDay
)}
cycleDayNumber
=
{
this
.
props
.
cycleDayNumber
}
date
=
{
this
.
props
.
cycleDay
.
date
}
infoTitle
=
{
'
Info here
'
}
infoText
=
{
'
bla bla
'
}
/
>
<
ScrollView
style
=
{
styles
.
page
}
>
<
ScrollView
style
=
{
styles
.
page
}
>
<
SymptomSection
<
SymptomSection
header
=
"
Heaviness
"
header
=
"
Heaviness
"
...
...
This diff is collapsed.
Click to expand it.
components/header.js
+
0
−
4
View file @
1b11b24a
...
@@ -10,7 +10,6 @@ import { formatDateForViewHeader } from '../components/cycle-day/labels/format'
...
@@ -10,7 +10,6 @@ import { formatDateForViewHeader } from '../components/cycle-day/labels/format'
export
default
class
Header
extends
Component
{
export
default
class
Header
extends
Component
{
render
()
{
render
()
{
console
.
log
(
this
.
props
)
return
(
return
(
this
.
props
.
isCycleDayOverView
?
this
.
props
.
isCycleDayOverView
?
<
View
style
=
{[
styles
.
header
,
styles
.
headerCycleDay
]}
>
<
View
style
=
{[
styles
.
header
,
styles
.
headerCycleDay
]}
>
...
@@ -45,9 +44,6 @@ export default class Header extends Component {
...
@@ -45,9 +44,6 @@ export default class Header extends Component {
<
Text
style
=
{
styles
.
dateHeader
}
>
<
Text
style
=
{
styles
.
dateHeader
}
>
{
this
.
props
.
title
}
{
this
.
props
.
title
}
<
/Text
>
<
/Text
>
<
Text
style
=
{
styles
.
cycleDayNumber
}
>
{
formatDateForViewHeader
(
this
.
props
.
date
)}
<
/Text
>
<
/View
>
<
/View
>
<
Icon
<
Icon
name
=
'
information-outline
'
name
=
'
information-outline
'
...
...
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