mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-15 17:43:08 -04:00
[skip ci] Revert "add react linting"
doesnt work properly :(
This reverts commit 18fdc33ee7
.
This commit is contained in:
parent
18fdc33ee7
commit
584885acf5
37 changed files with 97 additions and 884 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 function Lazy(props: T) {
|
||||
return (props: T) => {
|
||||
const Component = get() ?? NoopComponent;
|
||||
return <Component {...props} />;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue