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
cef2e850
Commit
cef2e850
authored
5 years ago
by
Julia Friesel
Browse files
Options
Downloads
Patches
Plain Diff
Don't render delete icon, instead of just setting it invisible
parent
4b469f2f
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/header/navigation-arrow.js
+5
-1
5 additions, 1 deletion
components/header/navigation-arrow.js
components/header/symptom-view.js
+13
-13
13 additions, 13 deletions
components/header/symptom-view.js
styles/index.js
+6
-6
6 additions, 6 deletions
styles/index.js
with
24 additions
and
20 deletions
components/header/navigation-arrow.js
+
5
−
1
View file @
cef2e850
...
...
@@ -8,6 +8,10 @@ export default function NavigationArrow(props) {
left
:
'
chevron-thin-left
'
,
right
:
'
chevron-thin-right
'
}[
props
.
direction
]
const
iconPosition
=
{
left
:
'
navigationArrowLeft
'
,
right
:
'
navigationArrowRight
'
}[
props
.
direction
]
let
pressHandler
if
(
props
.
goBack
)
{
pressHandler
=
()
=>
props
.
goBack
()
...
...
@@ -19,7 +23,7 @@ export default function NavigationArrow(props) {
}
return
(
<
TouchableOpacity
style
=
{
styles
.
navigationArrow
}
style
=
{
[
styles
.
navigationArrow
,
styles
[
iconPosition
]]
}
onPress
=
{
pressHandler
}
>
<
Icon
...
...
This diff is collapsed.
Click to expand it.
components/header/symptom-view.js
+
13
−
13
View file @
cef2e850
...
...
@@ -30,19 +30,19 @@ export default function SymptomViewHeader(props) {
{
formatDate
(
props
.
date
)}
<
/Text
>
<
/View
>
<
TouchableOpacity
onPress
=
{
props
.
deleteEntry
}
style
=
{[
style
s
.
headerDeleteButton
,
{
opacity
:
props
.
deleteIconActive
?
1
:
0
}
]}
disabled
=
{
!
props
.
deleteIconActive
}
>
<
Icon
name
=
"
delete
"
{...
iconStyles
.
symptomHeaderIcons
}
/
>
<
/TouchableOpacity
>
{
props
.
deleteIconActive
&&
<
TouchableOpacity
onPress
=
{
props
.
deleteEntry
}
style
=
{[
styles
.
headerDeleteButton
,
]}
>
<
Icon
name
=
"
delete
"
{...
iconStyles
.
symptomHeaderIcons
}
/
>
<
/TouchableOpacity
>
}
<
/View
>
)
...
...
This diff is collapsed.
Click to expand it.
styles/index.js
+
6
−
6
View file @
cef2e850
...
...
@@ -234,13 +234,12 @@ export default StyleSheet.create({
justifyContent
:
'
center
'
,
height
:
80
},
headerCycleDay
:
{
flexDirection
:
'
row
'
,
justifyContent
:
'
space-between
'
,
},
navigationArrow
:
{
padding
:
20
padding
:
20
,
position
:
'
absolute
'
},
navigationArrowLeft
:
{
left
:
0
},
navigationArrowRight
:
{
right
:
0
},
menu
:
{
backgroundColor
:
primaryColor
,
alignItems
:
'
center
'
,
...
...
@@ -453,7 +452,8 @@ export default StyleSheet.create({
headerDeleteButton
:
{
paddingHorizontal
:
20
,
paddingVertical
:
20
,
alignItems
:
'
flex-end
'
position
:
'
absolute
'
,
right
:
0
},
infoButtonSymptomView
:
{
position
:
'
absolute
'
,
...
...
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