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 {
19
19
20
20
export const WorkspaceQuota : FC < WorkspaceQuotaProps > = ( { quota } ) => {
21
21
const styles = useStyles ( )
22
- quota = {
23
- count : 3 ,
24
- limit : 3 ,
25
- }
26
- // quota = undefined
22
+
27
23
// loading state
28
24
if ( quota === undefined ) {
29
25
return (
Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ const CreateWorkspacePage: FC = () => {
28
28
getTemplateSchemaError,
29
29
getTemplatesError,
30
30
createWorkspaceError,
31
+ quota,
31
32
} = createWorkspaceState . context
32
33
33
34
return (
@@ -44,6 +45,7 @@ const CreateWorkspacePage: FC = () => {
44
45
templates = { templates }
45
46
selectedTemplate = { selectedTemplate }
46
47
templateSchema = { templateSchema }
48
+ quota = { quota }
47
49
createWorkspaceErrors = { {
48
50
[ CreateWorkspaceErrors . GET_TEMPLATES_ERROR ] : getTemplatesError ,
49
51
[ CreateWorkspaceErrors . GET_TEMPLATE_SCHEMA_ERROR ] : getTemplateSchemaError ,
Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ export interface CreateWorkspacePageViewProps {
33
33
templates ?: TypesGen . Template [ ]
34
34
selectedTemplate ?: TypesGen . Template
35
35
templateSchema ?: TypesGen . ParameterSchema [ ]
36
+ quota ?: TypesGen . UserWorkspaceQuota
36
37
createWorkspaceErrors : Partial < Record < CreateWorkspaceErrors , Error | unknown > >
37
38
onCancel : ( ) => void
38
39
onSubmit : ( req : TypesGen . CreateWorkspaceRequest ) => void
@@ -161,7 +162,7 @@ export const CreateWorkspacePageView: FC<React.PropsWithChildren<CreateWorkspace
161
162
</ Stack >
162
163
) }
163
164
164
- < WorkspaceQuota />
165
+ < WorkspaceQuota quota = { props . quota } />
165
166
166
167
< FormFooter onCancel = { props . onCancel } isLoading = { props . creatingWorkspace } />
167
168
</ >
You can’t perform that action at this time.
0 commit comments