Skip to content

Commit 061896a

Browse files
committed
fixes context
1 parent 292e487 commit 061896a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

app/routes/syntax/index.tsx renamed to app/routes/syntax.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Link, Outlet, useLoaderData } from "remix";
22
import styles from "~/styles/syntax.css";
3-
import type { Show } from "./$show";
3+
import type { Show } from "./syntax/$show";
44
import { padNumber } from "~/utils/pad";
55

66
export function links() {
@@ -45,7 +45,7 @@ export default function () {
4545
</ul>
4646
</nav>
4747
</aside>
48-
<Outlet />
48+
<Outlet context={{ podcastName }} />
4949
</section>
5050
</div>
5151
);

app/routes/syntax/$show.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,11 @@ export let loader: LoaderFunction = async ({ params }) => {
6868

6969
export default function () {
7070
const show = useLoaderData<Show>();
71+
const { podcastName } = useOutletContext();
7172

7273
return (
7374
<section className="show-details">
75+
<h3>{podcastName}</h3>
7476
<h1>
7577
#{show.number}: {show.title}
7678
</h1>

0 commit comments

Comments
 (0)