File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 1
1
import { Link , Outlet , useLoaderData } from "remix" ;
2
2
import styles from "~/styles/syntax.css" ;
3
- import type { Show } from "./$show" ;
3
+ import type { Show } from "./syntax/ $show" ;
4
4
import { padNumber } from "~/utils/pad" ;
5
5
6
6
export function links ( ) {
@@ -45,7 +45,7 @@ export default function () {
45
45
</ ul >
46
46
</ nav >
47
47
</ aside >
48
- < Outlet />
48
+ < Outlet context = { { podcastName } } />
49
49
</ section >
50
50
</ div >
51
51
) ;
Original file line number Diff line number Diff line change @@ -68,9 +68,11 @@ export let loader: LoaderFunction = async ({ params }) => {
68
68
69
69
export default function ( ) {
70
70
const show = useLoaderData < Show > ( ) ;
71
+ const { podcastName } = useOutletContext ( ) ;
71
72
72
73
return (
73
74
< section className = "show-details" >
75
+ < h3 > { podcastName } </ h3 >
74
76
< h1 >
75
77
#{ show . number } : { show . title }
76
78
</ h1 >
You can’t perform that action at this time.
0 commit comments