Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ThaliApp
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
thalia
ThaliApp
Commits
2680851b
Commit
2680851b
authored
5 years ago
by
Dirk Doesburg
Browse files
Options
Downloads
Patches
Plain Diff
fixed codestyle
parent
c2c29852
No related branches found
No related tags found
1 merge request
!398
"Search for Calendar events"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/ui/screens/events/CalendarScreen.js
+11
-12
11 additions, 12 deletions
app/ui/screens/events/CalendarScreen.js
with
11 additions
and
12 deletions
app/ui/screens/events/CalendarScreen.js
+
11
−
12
View file @
2680851b
import
React
,
{
Component
}
from
'
react
'
;
import
PropTypes
from
'
prop-types
'
;
import
{
SectionList
,
Text
,
View
,
ScrollView
,
RefreshControl
SectionList
,
Text
,
View
,
ScrollView
,
RefreshControl
,
}
from
'
react-native
'
;
import
{
withTranslation
}
from
'
react-i18next
'
;
import
Moment
from
'
moment
'
;
...
...
@@ -126,7 +126,7 @@ class CalendarScreen extends Component {
componentDidMount
()
{
this
.
props
.
refresh
();
}
search
=
(
keywords
)
=>
{
clearTimeout
(
this
.
searchTimeout
);
this
.
searchTimeout
=
setTimeout
(()
=>
{
...
...
@@ -141,13 +141,13 @@ class CalendarScreen extends Component {
const
header
=
(
<
SearchHeader
title
=
{
t
(
'
Calendar
'
)}
searchText
=
{
t
(
'
Find an event
'
)}
search
=
{
this
.
search
}
searchKey
=
{
keywords
}
title
=
{
t
(
'
Calendar
'
)}
searchText
=
{
t
(
'
Find an event
'
)}
search
=
{
this
.
search
}
searchKey
=
{
keywords
}
/
>
);
let
content
=
(
<
SectionList
style
=
{
styles
.
sectionList
}
...
...
@@ -174,7 +174,6 @@ class CalendarScreen extends Component {
}
else
if
(
eventList
.
length
===
0
)
{
content
=
<
ErrorScreen
message
=
{
t
(
'
No events found!
'
)}
/>
;
}
else
{
return
(
<
View
style
=
{
styles
.
wrapper
}
>
{
header
}
...
...
@@ -191,11 +190,11 @@ class CalendarScreen extends Component {
<
ScrollView
refreshControl
=
{(
<
RefreshControl
refreshing
=
{
loading
}
onRefresh
=
{
refresh
}
refreshing
=
{
loading
}
onRefresh
=
{
refresh
}
/
>
)}
>
)}
>
<
DismissKeyboardView
contentStyle
=
{
styles
.
keyboardView
}
>
{
content
}
<
/DismissKeyboardView
>
...
...
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