-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Eneko Fernandez <eneko@weave.works>
- Loading branch information
Showing
4 changed files
with
90 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import * as React from "react"; | ||
import {useContext} from "react"; | ||
import styled from "styled-components"; | ||
import FluxRuntimeComponent from "../../components/FluxRuntime"; | ||
import Page from "../../components/Page"; | ||
import {CoreClientContext} from "../../contexts/CoreClientContext"; | ||
import { useFeatureFlags } from "../../hooks/featureflags"; | ||
import {useListFluxCrds, useListFluxRuntimeObjects, useListRuntimeCrds, useListRuntimeObjects} from "../../hooks/flux"; | ||
Check failure on line 8 in ui/pages/v2/Runtime.tsx GitHub Actions / CI Test JS (16.X)
|
||
|
||
type Props = { | ||
className?: string; | ||
}; | ||
|
||
function Runtime({ className }: Props) { | ||
const { data, isLoading, error } = useListRuntimeObjects(); | ||
const { | ||
data: crds, | ||
isLoading: crdsLoading, | ||
error: crdsError, | ||
} = useListRuntimeCrds(); | ||
return ( | ||
|
||
<Page | ||
loading={isLoading || crdsLoading} | ||
error={error || crdsError} | ||
className={className} | ||
path={[{ label: "Runtime" }]} | ||
> | ||
<FluxRuntimeComponent deployments={data?.deployments} crds={crds?.crds} /> | ||
</Page> | ||
); | ||
} | ||
|
||
export default styled(Runtime).attrs({ className: Runtime.name })``; |