mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-19 19:04:06 -06:00
clean up
This commit is contained in:
parent
692815dd8d
commit
00fd86a3b7
@ -7,9 +7,7 @@ interface GroupConfig {
|
|||||||
|
|
||||||
export default ((config: GroupConfig) => {
|
export default ((config: GroupConfig) => {
|
||||||
const Group: QuartzComponent = (props: QuartzComponentProps) =>
|
const Group: QuartzComponent = (props: QuartzComponentProps) =>
|
||||||
config.components
|
config.components.map((C: QuartzComponent) => <C {...props} />)
|
||||||
.map((c: QuartzComponent) => ({ component: c }))
|
|
||||||
.map((it: { component: QuartzComponent }) => <it.component {...props} />)
|
|
||||||
|
|
||||||
Group.afterDOMLoaded = concatenateResources(...config.components.map((c) => c.afterDOMLoaded))
|
Group.afterDOMLoaded = concatenateResources(...config.components.map((c) => c.afterDOMLoaded))
|
||||||
Group.beforeDOMLoaded = concatenateResources(...config.components.map((c) => c.beforeDOMLoaded))
|
Group.beforeDOMLoaded = concatenateResources(...config.components.map((c) => c.beforeDOMLoaded))
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user