Skip to content

Commit f71bbdd

Browse files
committed
b
1 parent 2a63a8a commit f71bbdd

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

web/app/routes/home/_home.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,12 @@ export async function loader({ request }: LoaderFunctionArgs) {
3434
9,
3535
currentUser?.id,
3636
);
37-
37+
3838
return json({ pages, totalPages, currentPage, currentUser });
3939
}
4040

4141
export default function Home() {
42-
const { pages, totalPages, currentPage } =
43-
useLoaderData<typeof loader>();
42+
const { pages, totalPages, currentPage } = useLoaderData<typeof loader>();
4443
const [searchParams, setSearchParams] = useSearchParams();
4544

4645
const handlePageChange = (newPage: number) => {

web/app/routes/home/functions/queries.server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export async function fetchPaginatedPublicPages(
6262
title: page.sourceTexts.filter((item) => item.number === 0)[0].text,
6363
};
6464
});
65-
65+
6666
return {
6767
pages: pagesWithTitle,
6868
totalPages: Math.ceil(totalCount / pageSize),

web/app/routes/search/route.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,7 @@ export default function Search() {
8383
to={`/${result.user.userName}/page/${encodeURIComponent(result.slug)}`}
8484
className="block p-2 text-inherit no-underline"
8585
>
86-
<h3 className="font-bold">
87-
{result.title}
88-
</h3>
86+
<h3 className="font-bold">{result.title}</h3>
8987
</Link>
9088
</li>
9189
))}

0 commit comments

Comments
 (0)