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
d9123584
Commit
d9123584
authored
6 years ago
by
Julia Friesel
Browse files
Options
Downloads
Patches
Plain Diff
Extract symptom header
parent
1898770f
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/header/index.js
+6
-24
6 additions, 24 deletions
components/header/index.js
components/header/symptom-view.js
+33
-0
33 additions, 0 deletions
components/header/symptom-view.js
with
39 additions
and
24 deletions
components/header/index.js
+
6
−
24
View file @
d9123584
...
@@ -4,10 +4,9 @@ import {
...
@@ -4,10 +4,9 @@ import {
Text
,
Text
,
Dimensions
Dimensions
}
from
'
react-native
'
}
from
'
react-native
'
import
styles
,
{
iconStyles
}
from
'
../../styles
'
import
styles
from
'
../../styles
'
import
Icon
from
'
react-native-vector-icons/Entypo
'
import
FeatherIcon
from
'
react-native-vector-icons/Feather
'
import
CycleDayHeader
from
'
./cycle-day
'
import
CycleDayHeader
from
'
./cycle-day
'
import
SymptomViewHeader
from
'
./symptom-view
'
export
default
function
Header
(
props
)
{
export
default
function
Header
(
props
)
{
const
middle
=
Dimensions
.
get
(
'
window
'
).
width
/
2
const
middle
=
Dimensions
.
get
(
'
window
'
).
width
/
2
...
@@ -18,27 +17,10 @@ export default function Header(props) {
...
@@ -18,27 +17,10 @@ export default function Header(props) {
{...
props
}
{...
props
}
/
>
/
>
:
props
.
isSymptomView
?
:
props
.
isSymptomView
?
<
View
style
=
{[
styles
.
header
,
styles
.
headerSymptom
]}
>
<
SymptomViewHeader
<
View
middle
=
{
middle
}
style
=
{
styles
.
accentCircle
}
{...
props
}
left
=
{
middle
-
styles
.
accentCircle
.
width
/
2
}
/
>
/
>
<
Icon
name
=
'
chevron-thin-left
'
{...
iconStyles
.
navigationArrow
}
onPress
=
{()
=>
props
.
goBack
()}
/
>
<
View
>
<
Text
style
=
{
styles
.
dateHeader
}
>
{
props
.
title
}
<
/Text
>
<
/View
>
<
FeatherIcon
name
=
'
info
'
{...
iconStyles
.
symptomHeaderIcons
}
/
>
<
/View
>
:
:
<
View
style
=
{
styles
.
header
}
>
<
View
style
=
{
styles
.
header
}
>
<
View
style
=
{
styles
.
accentCircle
}
/
>
<
View
style
=
{
styles
.
accentCircle
}
/
>
...
...
This diff is collapsed.
Click to expand it.
components/header/symptom-view.js
0 → 100644
+
33
−
0
View file @
d9123584
import
React
from
'
react
'
import
{
View
,
Text
}
from
'
react-native
'
import
styles
,
{
iconStyles
}
from
'
../../styles
'
import
Icon
from
'
react-native-vector-icons/Entypo
'
import
FeatherIcon
from
'
react-native-vector-icons/Feather
'
export
default
function
SymptomViewHeader
(
props
)
{
return
(
<
View
style
=
{[
styles
.
header
,
styles
.
headerSymptom
]}
>
<
View
style
=
{
styles
.
accentCircle
}
left
=
{
props
.
middle
-
styles
.
accentCircle
.
width
/
2
}
/
>
<
Icon
name
=
'
chevron-thin-left
'
{...
iconStyles
.
navigationArrow
}
onPress
=
{()
=>
props
.
goBack
()}
/
>
<
View
>
<
Text
style
=
{
styles
.
dateHeader
}
>
{
props
.
title
}
<
/Text
>
<
/View
>
<
FeatherIcon
name
=
'
info
'
{...
iconStyles
.
symptomHeaderIcons
}
/
>
<
/View
>
)
}
\ No newline at end of file
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