diff --git a/demo_assets/component_demo.tsx b/demo_assets/component_demo.tsx index 20cbcd0..38d4cb6 100644 --- a/demo_assets/component_demo.tsx +++ b/demo_assets/component_demo.tsx @@ -7,19 +7,19 @@ import { TableRow, } from '@mui/material'; -interface DemoComponentProps { +interface DemoRobotTableProps { name: string; description: string; image: string; features: string[]; } -export default function DemoComponent({ +export default function DemoRobotTable({ name, description, image, features, -}: DemoComponentProps) { +}: DemoRobotTableProps) { return ( diff --git a/demo_assets/custom_components.tsx b/demo_assets/custom_components.tsx index 2ac6116..52c62ef 100644 --- a/demo_assets/custom_components.tsx +++ b/demo_assets/custom_components.tsx @@ -1,9 +1,9 @@ import {ComponentDeclarations} from 'lib/loaders/handlebars-helpers'; -import DemoComponent from './component_demo'; +import DemoRobotTable from './component_demo'; const components: ComponentDeclarations = { - DemoRobotTable: (ctx: any) => , + DemoRobotTable: (ctx: any) => , }; export default components; diff --git a/pages/markdown.tsx b/pages/markdown.tsx index 2bbff2a..167dc3f 100644 --- a/pages/markdown.tsx +++ b/pages/markdown.tsx @@ -12,22 +12,10 @@ import {MDXProvider} from '@mdx-js/react'; import {TABS} from './index'; -import Md from 'demo_assets/markdown_demo.md?full'; +import customComponents from 'demo_assets/custom_components'; +import {components} from 'qcr-sites-shared/loaders/handlebars-helpers'; -import DemoComponent from 'demo_assets/component_demo'; - -import {Button} from '@mui/material'; - -const cs = { - DemoComponent: (props) => ( - - ), -}; +import Mdx from 'demo_assets/markdown_demo.md?full'; export default function MarkdownPage() { return ( @@ -37,7 +25,7 @@ export default function MarkdownPage() { Demonstration of markdown capabilities - +