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
9eb1ad6a
Commit
9eb1ad6a
authored
6 years ago
by
Julia Friesel
Browse files
Options
Downloads
Patches
Plain Diff
Simplify home screen markup
parent
0c92c85b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
components/home.js
+25
-31
25 additions, 31 deletions
components/home.js
with
25 additions
and
31 deletions
components/home.js
+
25
−
31
View file @
9eb1ad6a
...
@@ -5,7 +5,7 @@ import {
...
@@ -5,7 +5,7 @@ import {
Text
Text
}
from
'
react-native
'
}
from
'
react-native
'
import
{
LocalDate
}
from
'
js-joda
'
import
{
LocalDate
}
from
'
js-joda
'
import
styles
from
'
../styles
/index
'
import
styles
from
'
../styles
'
import
cycleDayModule
from
'
../lib/get-cycle-day-number
'
import
cycleDayModule
from
'
../lib/get-cycle-day-number
'
import
{
getOrCreateCycleDay
,
bleedingDaysSortedByDate
,
deleteAll
}
from
'
../db
'
import
{
getOrCreateCycleDay
,
bleedingDaysSortedByDate
,
deleteAll
}
from
'
../db
'
...
@@ -46,37 +46,31 @@ export default class Home extends Component {
...
@@ -46,37 +46,31 @@ export default class Home extends Component {
render
()
{
render
()
{
const
navigate
=
this
.
props
.
navigation
.
navigate
const
navigate
=
this
.
props
.
navigation
.
navigate
return
(
return
(
<
View
style
=
{
styles
.
homeContainerView
}
>
<
View
>
<
View
style
=
{{
flex
:
2
}}
>
<
Text
style
=
{
styles
.
welcome
}
>
{
this
.
state
.
welcomeText
}
<
/Text
>
<
View
>
<
View
style
=
{
styles
.
homeButtons
}
>
<
Text
style
=
{
styles
.
welcome
}
>
{
this
.
state
.
welcomeText
}
<
/Text
>
<
Button
<
/View
>
onPress
=
{()
=>
this
.
passTodayToDayView
()}
title
=
"
Edit symptoms for today
"
>
<
/Button
>
<
/View
>
<
/View
>
<
View
style
=
{
styles
.
homeButtonsView
}
>
<
View
style
=
{
styles
.
homeButton
}
>
<
View
>
<
Button
<
Button
onPress
=
{()
=>
navigate
(
'
calendar
'
)}
onPress
=
{()
=>
this
.
passTodayToDayView
()}
title
=
"
Go to calendar
"
>
title
=
"
Edit symptoms for today
"
>
<
/Button
>
<
/Button
>
<
/View
>
<
/View
>
<
View
style
=
{
styles
.
homeButton
}
>
<
View
>
<
Button
<
Button
onPress
=
{()
=>
navigate
(
'
chart
'
)}
onPress
=
{()
=>
navigate
(
'
calendar
'
)}
title
=
"
Go to chart
"
>
title
=
"
Go to calendar
"
>
<
/Button
>
<
/Button
>
<
/View
>
<
/View
>
<
View
style
=
{
styles
.
homeButton
}
>
<
View
>
<
Button
<
Button
onPress
=
{()
=>
deleteAll
()}
onPress
=
{()
=>
navigate
(
'
chart
'
)}
title
=
"
delete everything
"
>
title
=
"
Go to chart
"
>
<
/Button
>
<
/Button
>
<
/View
>
<
View
>
<
Button
onPress
=
{()
=>
deleteAll
()}
title
=
"
delete everything
"
>
<
/Button
>
<
/View
>
<
/View
>
<
/View
>
<
/View
>
<
/View
>
)
)
...
...
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