mirror of
https://github.com/portainer/portainer.git
synced 2025-08-02 20:35:25 +02:00
refactor(auth): cache user data [EE-4935] (#8380)
This commit is contained in:
parent
a748e15c16
commit
00bbf4ac63
8 changed files with 59 additions and 46 deletions
|
@ -10,13 +10,12 @@ export function withI18nSuspense<T>(
|
|||
function WrapperComponent(props: T) {
|
||||
return (
|
||||
<Suspense fallback="Loading translations...">
|
||||
{/* eslint-disable-next-line react/jsx-props-no-spreading */}
|
||||
<WrappedComponent {...props} />
|
||||
</Suspense>
|
||||
);
|
||||
}
|
||||
|
||||
WrapperComponent.displayName = displayName;
|
||||
WrapperComponent.displayName = `withI18nSuspense(${displayName})`;
|
||||
|
||||
return WrapperComponent;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue