mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-09-27 13:33:26 +00:00
Split UI build (#681)
* Split ui build into build and build-ent folders * remove is_standalone var Co-authored-by: RoyUP9 <87927115+RoyUP9@users.noreply.github.com>
This commit is contained in:
18
ui/src/AppChooser.tsx
Normal file
18
ui/src/AppChooser.tsx
Normal file
@@ -0,0 +1,18 @@
|
||||
import React, {Suspense} from 'react';
|
||||
import LoadingOverlay from "./components/LoadingOverlay";
|
||||
|
||||
const AppChooser = () => {
|
||||
|
||||
let MainComponent;
|
||||
if (process.env.REACT_APP_OVERRIDE_IS_ENTERPRISE === "true") {
|
||||
MainComponent = React.lazy(() => import('./EntApp'));
|
||||
} else {
|
||||
MainComponent = React.lazy(() => import('./App'));
|
||||
}
|
||||
|
||||
return <Suspense fallback={<LoadingOverlay/>}>
|
||||
<MainComponent/>
|
||||
</Suspense>;
|
||||
}
|
||||
|
||||
export default AppChooser;
|
Reference in New Issue
Block a user