Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
thalia
ThaliApp
Commits
1828beca
Commit
1828beca
authored
Oct 02, 2019
by
Lars van Rhijn
Browse files
No undefined is displayed when description is empty
parent
9efca603
Changes
1
Show whitespace changes
Inline
Side-by-side
app/ui/screens/events/RegistrationScreen.js
View file @
1828beca
...
@@ -151,6 +151,7 @@ class RegistrationScreen extends Component {
...
@@ -151,6 +151,7 @@ class RegistrationScreen extends Component {
}}
}}
/
>
/
>
<
/View
>
<
/View
>
{
!
field
.
description
||
(
<
HTML
<
HTML
html
=
{
field
.
description
}
html
=
{
field
.
description
}
onLinkPress
=
{(
event
,
href
)
=>
openUrl
(
href
)}
onLinkPress
=
{(
event
,
href
)
=>
openUrl
(
href
)}
...
@@ -159,6 +160,7 @@ class RegistrationScreen extends Component {
...
@@ -159,6 +160,7 @@ class RegistrationScreen extends Component {
a
:
linkStyles
,
a
:
linkStyles
,
}}
}}
/
>
/
>
)}
{
validity
.
isValid
||
(
{
validity
.
isValid
||
(
<
Text
style
=
{
styles
.
invalid
}
>
<
Text
style
=
{
styles
.
invalid
}
>
{
validity
.
reason
}
{
validity
.
reason
}
...
@@ -172,6 +174,7 @@ class RegistrationScreen extends Component {
...
@@ -172,6 +174,7 @@ class RegistrationScreen extends Component {
<
Text
style
=
{
styles
.
field
}
>
<
Text
style
=
{
styles
.
field
}
>
{
field
.
label
}
{
field
.
label
}
<
/Text
>
<
/Text
>
{
!
field
.
description
||
(
<
HTML
<
HTML
html
=
{
field
.
description
}
html
=
{
field
.
description
}
onLinkPress
=
{(
event
,
href
)
=>
openUrl
(
href
)}
onLinkPress
=
{(
event
,
href
)
=>
openUrl
(
href
)}
...
@@ -180,6 +183,7 @@ class RegistrationScreen extends Component {
...
@@ -180,6 +183,7 @@ class RegistrationScreen extends Component {
a
:
linkStyles
,
a
:
linkStyles
,
}}
}}
/
>
/
>
)}
<
TextInput
<
TextInput
value
=
{
this
.
state
[
key
]}
value
=
{
this
.
state
[
key
]}
onChangeText
=
{
value
=>
this
.
updateField
(
key
,
value
)}
onChangeText
=
{
value
=>
this
.
updateField
(
key
,
value
)}
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment