mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-19 10:54:06 -06:00
clean up
This commit is contained in:
parent
692815dd8d
commit
00fd86a3b7
@ -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))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user