Skip to content

Commit 83764ee

Browse files
committed
fix linting
1 parent 098fce2 commit 83764ee

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

apps/events/src/routes/bounties.lazy.tsx

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,11 @@ export const Route = createLazyFileRoute('/bounties')({
99
const PERSON_ENTITY_ID = '7728d2458ae842d3a90a37e0bb8ee676';
1010

1111
function RouteComponent() {
12-
const { data: bounties, isLoading, isError } = useEntities(Bounty, {
12+
const {
13+
data: bounties,
14+
isLoading,
15+
isError,
16+
} = useEntities(Bounty, {
1317
mode: 'public',
1418
spaces: 'all',
1519
filter: {
@@ -20,24 +24,18 @@ function RouteComponent() {
2024
return (
2125
<div className="flex flex-col gap-4 max-w-(--breakpoint-sm) mx-auto py-8">
2226
<h1 className="text-2xl font-bold">Bounties</h1>
23-
<p className="text-sm text-gray-500">
24-
Bounties where person {PERSON_ENTITY_ID} expressed interest
25-
</p>
27+
<p className="text-sm text-gray-500">Bounties where person {PERSON_ENTITY_ID} expressed interest</p>
2628

2729
{isLoading && <div>Loading...</div>}
2830
{isError && <div>Error loading bounties</div>}
2931

30-
{!isLoading && bounties.length === 0 && (
31-
<div className="text-gray-500">No bounties found</div>
32-
)}
32+
{!isLoading && bounties.length === 0 && <div className="text-gray-500">No bounties found</div>}
3333

3434
<ul className="flex flex-col gap-2">
3535
{bounties.map((bounty) => (
3636
<li key={bounty.id} className="border rounded p-4">
3737
<h2 className="font-semibold">{bounty.name}</h2>
38-
{bounty.description && (
39-
<p className="text-sm text-gray-600">{bounty.description}</p>
40-
)}
38+
{bounty.description && <p className="text-sm text-gray-600">{bounty.description}</p>}
4139
<p className="text-xs text-gray-400 mt-1">{bounty.id}</p>
4240
</li>
4341
))}

0 commit comments

Comments
 (0)