-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(ACL): use React.lazy for ACL [YTFRONT-3814]
- Loading branch information
1 parent
3d46dba
commit b9c0e01
Showing
6 changed files
with
41 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import React from 'react'; | ||
import withLazyLoading from '../../hocs/withLazyLoading'; | ||
|
||
function importAcl() { | ||
return import(/* webpackChunkName: "acl" */ './ACL-connect-helpers'); | ||
} | ||
|
||
export const AccessContentAcl = withLazyLoading( | ||
React.lazy(async () => { | ||
return {default: (await importAcl()).AccessContentAcl}; | ||
}), | ||
); | ||
|
||
export const NavigationAcl = withLazyLoading( | ||
React.lazy(async () => { | ||
return {default: (await importAcl()).NavigationAcl}; | ||
}), | ||
); | ||
|
||
export const PoolAclPanel = withLazyLoading( | ||
React.lazy(async () => { | ||
return {default: (await importAcl()).PoolAclPanel}; | ||
}), | ||
); | ||
|
||
export const AccountsAcl = withLazyLoading( | ||
React.lazy(async () => { | ||
return {default: (await importAcl()).AccountsAcl}; | ||
}), | ||
); | ||
|
||
export const BundleAcl = withLazyLoading( | ||
React.lazy(async () => { | ||
return {default: (await importAcl()).BundleAcl}; | ||
}), | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters