Skip to content

Commit e7aa035

Browse files
committed
Revert files that don't need to change
1 parent 997fd00 commit e7aa035

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

app/pages/doc.tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ import { CACHE_CONTROL } from "~/http";
33
import { seo } from "~/seo";
44
import semver from "semver";
55

6+
import type { HeadersArgs } from "react-router";
7+
68
import { getDocTitle, getDocsSearch, getRobots } from "~/ui/meta";
79
import { DocLayout } from "~/components/doc-layout";
810
import type { Route } from "./+types/doc";
@@ -43,7 +45,7 @@ export let loader = async ({ request, params }: Route.LoaderArgs) => {
4345
}
4446
};
4547

46-
export function headers({ parentHeaders }: Route.HeadersArgs) {
48+
export function headers({ parentHeaders }: HeadersArgs) {
4749
parentHeaders.set("Cache-Control", CACHE_CONTROL.doc);
4850
return parentHeaders;
4951
}

app/pages/docs-layout.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import semver from "semver";
1313
import { useRef } from "react";
1414
import { useCodeBlockCopyButton } from "~/ui/utils";
1515

16-
export async function loader({ params }: Route.LoaderArgs) {
16+
export let loader = async ({ params }: Route.LoaderArgs) => {
1717
let splat = params["*"];
1818
let firstSegment = splat?.split("/")[0];
1919
let refParam = params.ref
@@ -32,7 +32,7 @@ export async function loader({ params }: Route.LoaderArgs) {
3232
]);
3333

3434
return { menu, header };
35-
}
35+
};
3636

3737
export default function DocsLayout({ loaderData }: Route.ComponentProps) {
3838
const { menu } = loaderData;

0 commit comments

Comments
 (0)