File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,9 +3,10 @@ import { useConfig } from './hooks/useConfig';
33import log from './util/log' ;
44
55export enum PluginPosition {
6+ None ,
67 Header ,
78 Footer ,
8- Cell ,
9+ Cell
910}
1011
1112export interface Plugin < T extends FunctionComponent > {
@@ -77,7 +78,7 @@ export function PluginRenderer(props: {
7778 // render a single plugin
7879 const plugin = config . plugin . get ( props . pluginId ) ;
7980
80- if ( ! plugin ) return null ;
81+ if ( ! plugin || plugin . position === PluginPosition . None ) return null ;
8182
8283 return h (
8384 Fragment ,
@@ -87,7 +88,7 @@ export function PluginRenderer(props: {
8788 ...props . props ,
8889 } ) ,
8990 ) ;
90- } else if ( props . position !== undefined ) {
91+ } else if ( props . position !== undefined && props . position !== PluginPosition . None ) {
9192 // render using a specific plugin position
9293 return h (
9394 Fragment ,
You can’t perform that action at this time.
0 commit comments