Skip to content

Commit 85e8036

Browse files
chore: format
1 parent cd25f85 commit 85e8036

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

_official-tutorial/app/routes/contacts.$contactId.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,15 +56,17 @@ export default function Contact() {
5656
<Favorite contact={contact} />
5757
</h1>
5858

59-
{contact.twitter ? <p>
59+
{contact.twitter ? (
60+
<p>
6061
<a
6162
target="_blank"
6263
href={`https://twitter.com/${contact.twitter}`}
6364
rel="noreferrer"
6465
>
6566
{contact.twitter}
6667
</a>
67-
</p> : null}
68+
</p>
69+
) : null}
6870

6971
{contact.notes ? <p>{contact.notes}</p> : null}
7072

firebase/app/routes/login.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,9 @@ export default function Login() {
9393
return (
9494
<div>
9595
<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}
9799
<form method="post" onSubmit={handleSubmit}>
98100
<input
99101
style={{ display: "block" }}

0 commit comments

Comments
 (0)