We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 004fd90 commit 6caf53bCopy full SHA for 6caf53b
dashi/src/lib/components/DashiComponent.tsx
@@ -10,7 +10,12 @@ export interface DashiComponentProps extends ComponentState {
10
}
11
12
export function DashiComponent({ type, ...props }: DashiComponentProps) {
13
- // TODO: find way to avoid ugly type casts here
+ // TODO: allow for registering components via their types
14
+ // and make following code generic.
15
+ //
16
+ // const DashiComp = Registry.getComponent(type);
17
+ // return return <DashiComp {...props} />;
18
19
if (type === "Plot") {
20
return <DashiPlot {...(props as DashiPlotProps)} />;
21
} else if (type === "Dropdown") {
0 commit comments