This commit is contained in:
Harv 2025-05-03 07:41:23 +00:00 committed by GitHub
parent 692815dd8d
commit 00fd86a3b7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -7,9 +7,7 @@ interface GroupConfig {
export default ((config: GroupConfig) => {
const Group: QuartzComponent = (props: QuartzComponentProps) =>
config.components
.map((c: QuartzComponent) => ({ component: c }))
.map((it: { component: QuartzComponent }) => <it.component {...props} />)
config.components.map((C: QuartzComponent) => <C {...props} />)
Group.afterDOMLoaded = concatenateResources(...config.components.map((c) => c.afterDOMLoaded))
Group.beforeDOMLoaded = concatenateResources(...config.components.map((c) => c.beforeDOMLoaded))