File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
_official-tutorial/app/routes Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -56,15 +56,17 @@ export default function Contact() {
56
56
< Favorite contact = { contact } />
57
57
</ h1 >
58
58
59
- { contact . twitter ? < p >
59
+ { contact . twitter ? (
60
+ < p >
60
61
< a
61
62
target = "_blank"
62
63
href = { `https://twitter.com/${ contact . twitter } ` }
63
64
rel = "noreferrer"
64
65
>
65
66
{ contact . twitter }
66
67
</ a >
67
- </ p > : null }
68
+ </ p >
69
+ ) : null }
68
70
69
71
{ contact . notes ? < p > { contact . notes } </ p > : null }
70
72
Original file line number Diff line number Diff line change @@ -93,7 +93,9 @@ export default function Login() {
93
93
return (
94
94
< div >
95
95
< h1 > Login</ h1 >
96
- { ( clientAction ?. error || actionData ?. error ) ? < p > { clientAction ?. error || actionData ?. error } </ p > : null }
96
+ { clientAction ?. error || actionData ?. error ? (
97
+ < p > { clientAction ?. error || actionData ?. error } </ p >
98
+ ) : null }
97
99
< form method = "post" onSubmit = { handleSubmit } >
98
100
< input
99
101
style = { { display : "block" } }
You can’t perform that action at this time.
0 commit comments