diff --git a/frontend/workflows/projectSelector/src/index.tsx b/frontend/workflows/projectSelector/src/index.tsx index 9ce42e496e..5bf9180a3c 100644 --- a/frontend/workflows/projectSelector/src/index.tsx +++ b/frontend/workflows/projectSelector/src/index.tsx @@ -1,6 +1,8 @@ import type { BaseWorkflowProps, WorkflowConfiguration } from "@clutch-sh/core"; +import { useReducerState } from "./helpers"; import ProjectSelector from "./project-selector"; +import { Group } from "./types"; export interface WorkflowProps extends BaseWorkflowProps {} @@ -26,4 +28,4 @@ const register = (): WorkflowConfiguration => { export default register; -export { ProjectSelector }; +export { Group, ProjectSelector, useReducerState }; diff --git a/frontend/workflows/projectSelector/src/project-selector.tsx b/frontend/workflows/projectSelector/src/project-selector.tsx index bfa21f76d5..01cdc62547 100644 --- a/frontend/workflows/projectSelector/src/project-selector.tsx +++ b/frontend/workflows/projectSelector/src/project-selector.tsx @@ -56,7 +56,7 @@ const StyledProgressContainer = styled.div({ }, }); -const ProjectSelector = () => { +const ProjectSelector = ({ children }) => { // On load, we'll request a list of owned projects and their upstreams and downstreams from the API. // The API will contain information about the relationships between projects and upstreams and downstreams. // By default, the owned projects will be checked and others will be unchecked. @@ -156,6 +156,7 @@ const ProjectSelector = () => { + {children} ); diff --git a/frontend/workflows/projectSelector/tsconfig.json b/frontend/workflows/projectSelector/tsconfig.json index 52397a1b0c..4e4d720d6b 100644 --- a/frontend/workflows/projectSelector/tsconfig.json +++ b/frontend/workflows/projectSelector/tsconfig.json @@ -1,6 +1,7 @@ { "extends": "../../tsconfig.json", "compilerOptions": { + "composite": true, "outDir": "./dist", "rootDir": "./src" },