update to agility/next

This commit is contained in:
Joel Varty
2021-06-09 23:17:19 -04:00
parent 17f458b45b
commit e836a5950f
26 changed files with 26612 additions and 6639 deletions

View File

@@ -33,10 +33,8 @@ const allModules = [
* Find the component for a module by name.
* @param moduleName
*/
const getModule = (moduleName: string): any | null => {
export const getModule = (moduleName: string): any | null => {
const obj = allModules.find(m => m.name.toLowerCase() === moduleName.toLowerCase())
if (!obj) return null
return obj.module
}
export default getModule