Skip to content

Commit

Permalink
review PR
Browse files Browse the repository at this point in the history
Signed-off-by: Eneko Fernandez <eneko@weave.works>
  • Loading branch information
enekofb committed Dec 19, 2023
1 parent a7c7c8e commit 913c130
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions ui/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,9 @@ const App = () => {

const { isFlagEnabled } = useFeatureFlags();

const isNewRuntimeEnabled = isFlagEnabled("WEAVE_GITOPS_FEATURE_GITOPS_RUNTIME");
const isNewRuntimeEnabled = isFlagEnabled(
"WEAVE_GITOPS_FEATURE_GITOPS_RUNTIME"
);

const navItems: NavItem[] = [
{
Expand Down Expand Up @@ -162,7 +164,11 @@ const App = () => {
path={V2Routes.ImagePolicyDetails}
component={withSearchParams(ImagePolicyDetails)}
/>
{isNewRuntimeEnabled ? <Route path={V2Routes.Runtime} component={Runtime} /> : <Route path={V2Routes.FluxRuntime} component={FluxRuntime} />}
{isNewRuntimeEnabled ? (
<Route path={V2Routes.Runtime} component={Runtime} />
) : (
<Route path={V2Routes.FluxRuntime} component={FluxRuntime} />
)}
<Route
path={V2Routes.GitRepo}
component={withSearchParams(GitRepositoryDetail)}
Expand Down

0 comments on commit 913c130

Please sign in to comment.