Skip to content

Commit 2796abc

Browse files
committed
explicitly include UnderConstruction component in mdx Component
1 parent 8a8e9fa commit 2796abc

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

mdx/projects/lagrangian-particle-tracking.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ tags: ["research"]
66
description: "My research on Lagrangian particle tracking in the Northern California Current System."
77
---
88

9-
import { UnderConstruction } from "~/components/UnderConstruction.tsx";
9+
// import { UnderConstruction } from "~/components/UnderConstruction.tsx";
1010

1111
<UnderConstruction />

mdx/projects/pollen-data.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ description: "A historical time series of pollen data from the Willamette Valley
88

99
// import { TimeSeriesPlot } from "@/components/ui/Plots";
1010

11-
import { UnderConstruction } from "~/components/UnderConstruction.tsx";
11+
// import { UnderConstruction } from "~/components/UnderConstruction.tsx";
1212

1313
<UnderConstruction />

mdx/projects/shelf-nitrate-response-to-upwelling.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ tags: ["research"]
66
description: "My research on the response of shelf nitrate to upwelling in the Northern California Current System."
77
---
88

9-
import { UnderConstruction } from "~/components/UnderConstruction.tsx";
9+
// import { UnderConstruction } from "~/components/UnderConstruction.tsx";
1010

1111
<UnderConstruction />

src/components/mdx.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import { Link, useMatch } from "@tanstack/react-router";
77
import { ReactNode, useState, useRef, useMemo } from "react";
88
import { Copy, Check, ExternalLink } from "lucide-react";
99
import { getMDXComponent } from "mdx-bundler/client";
10+
import UnderConstruction from "./UnderConstruction";
1011

1112
function Paragraph({ children }: { children: ReactNode }) {
1213
return (
@@ -222,6 +223,9 @@ export function MDX({ code }: { code: string }) {
222223
p: Paragraph,
223224
Image,
224225
blockquote: BlockQuote,
226+
UnderConstruction() {
227+
return <UnderConstruction />;
228+
},
225229
}}
226230
/>
227231
);

0 commit comments

Comments
 (0)