-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Supply MDX rendering components via a DRY approach
- Loading branch information
Showing
3 changed files
with
9 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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) => <DemoComponent {...ctx} />, | ||
DemoRobotTable: (ctx: any) => <DemoRobotTable {...ctx} />, | ||
}; | ||
|
||
export default components; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters