feat: BIG-171 alerts global and lazy loading.

This commit is contained in:
a.bouhuolia
2021-10-30 20:55:50 +02:00
parent 2d9aaac653
commit b4e1fa4aca
7 changed files with 133 additions and 27 deletions

View File

@@ -0,0 +1,13 @@
import React from 'react';
import { AlertLazy } from './components'
import registered from './registered';
export default function AlertsContainer() {
return (
<React.Fragment>
{registered.map((alert) => (
<AlertLazy name={alert.name} Component={alert.component} />
))}
</React.Fragment>
);
}