diff --git a/quartz/components/Group.tsx b/quartz/components/Group.tsx index ccb17dc15..d83d24cb7 100644 --- a/quartz/components/Group.tsx +++ b/quartz/components/Group.tsx @@ -2,22 +2,17 @@ import { concatenateResources } from "../util/resources" import { QuartzComponent, QuartzComponentConstructor, QuartzComponentProps } from "./types" interface GroupConfig { - components: QuartzComponent[] + components: QuartzComponent[] } export default ((config: GroupConfig) => { - const Group: QuartzComponent = (props: QuartzComponentProps) => - config.components - .map((c: QuartzComponent) => ({ component: c })) - .map((it: { component: QuartzComponent} ) => ()) + const Group: QuartzComponent = (props: QuartzComponentProps) => + config.components + .map((c: QuartzComponent) => ({ component: c })) + .map((it: { component: QuartzComponent }) => ) - - Group.afterDOMLoaded = concatenateResources( - ...config.components.map((c) => c.afterDOMLoaded), - ) - Group.beforeDOMLoaded = concatenateResources( - ...config.components.map((c) => c.beforeDOMLoaded), - ) - Group.css = concatenateResources(...config.components.map((c) => c.css)) - return Group -}) satisfies QuartzComponentConstructor \ No newline at end of file + Group.afterDOMLoaded = concatenateResources(...config.components.map((c) => c.afterDOMLoaded)) + Group.beforeDOMLoaded = concatenateResources(...config.components.map((c) => c.beforeDOMLoaded)) + Group.css = concatenateResources(...config.components.map((c) => c.css)) + return Group +}) satisfies QuartzComponentConstructor diff --git a/quartz/components/index.ts b/quartz/components/index.ts index bf7a0f35b..80c6a03d7 100644 --- a/quartz/components/index.ts +++ b/quartz/components/index.ts @@ -51,5 +51,5 @@ export { Comments, Flex, ConditionalRender, - Group + Group, }