mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-20 03:47:01 -04:00
[skip ci] add react linting
This commit is contained in:
parent
522fdcd15d
commit
18fdc33ee7
37 changed files with 884 additions and 97 deletions
|
@ -133,7 +133,7 @@ export function useForceUpdater(withDep?: true) {
|
|||
|
||||
export function LazyComponent<T extends object = any>(factory: () => React.ComponentType<T>, attempts = 5) {
|
||||
const get = makeLazy(factory, attempts);
|
||||
return (props: T) => {
|
||||
return function Lazy(props: T) {
|
||||
const Component = get() ?? NoopComponent;
|
||||
return <Component {...props} />;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue