File tree Expand file tree Collapse file tree 3 files changed +5
-6
lines changed
components/WorkspaceQuota
pages/CreateWorkspacePage Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -19,11 +19,7 @@ export interface WorkspaceQuotaProps {
1919
2020export const WorkspaceQuota : FC < WorkspaceQuotaProps > = ( { quota } ) => {
2121 const styles = useStyles ( )
22- quota = {
23- count : 3 ,
24- limit : 3 ,
25- }
26- // quota = undefined
22+
2723 // loading state
2824 if ( quota === undefined ) {
2925 return (
Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ const CreateWorkspacePage: FC = () => {
2828 getTemplateSchemaError,
2929 getTemplatesError,
3030 createWorkspaceError,
31+ quota,
3132 } = createWorkspaceState . context
3233
3334 return (
@@ -44,6 +45,7 @@ const CreateWorkspacePage: FC = () => {
4445 templates = { templates }
4546 selectedTemplate = { selectedTemplate }
4647 templateSchema = { templateSchema }
48+ quota = { quota }
4749 createWorkspaceErrors = { {
4850 [ CreateWorkspaceErrors . GET_TEMPLATES_ERROR ] : getTemplatesError ,
4951 [ CreateWorkspaceErrors . GET_TEMPLATE_SCHEMA_ERROR ] : getTemplateSchemaError ,
Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ export interface CreateWorkspacePageViewProps {
3333 templates ?: TypesGen . Template [ ]
3434 selectedTemplate ?: TypesGen . Template
3535 templateSchema ?: TypesGen . ParameterSchema [ ]
36+ quota ?: TypesGen . UserWorkspaceQuota
3637 createWorkspaceErrors : Partial < Record < CreateWorkspaceErrors , Error | unknown > >
3738 onCancel : ( ) => void
3839 onSubmit : ( req : TypesGen . CreateWorkspaceRequest ) => void
@@ -161,7 +162,7 @@ export const CreateWorkspacePageView: FC<React.PropsWithChildren<CreateWorkspace
161162 </ Stack >
162163 ) }
163164
164- < WorkspaceQuota />
165+ < WorkspaceQuota quota = { props . quota } />
165166
166167 < FormFooter onCancel = { props . onCancel } isLoading = { props . creatingWorkspace } />
167168 </ >
You can’t perform that action at this time.
0 commit comments