File tree 1 file changed +20
-7
lines changed
plugins/backstage-plugin-coder
1 file changed +20
-7
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,8 @@ the Dev Container.
47
47
3. Add the ` CoderProvider` to the application:
48
48
49
49
` ` ` tsx
50
- // In packages/app/src/App.tsx
50
+ // packages/app/src/App.tsx
51
+
51
52
import {
52
53
type CoderAppConfig,
53
54
CoderProvider,
@@ -94,14 +95,26 @@ the Dev Container.
94
95
4. Add the `CoderWorkspacesCard` card to the entity page in your app :
95
96
96
97
` ` ` tsx
97
- // In packages/app/src/components/catalog/EntityPage.tsx
98
- import { CoderWorkspacesCard } from '@coder/backstage-plugin-coder';
98
+ // packages/app/src/components/catalog/EntityPage.tsx
99
99
100
- // ...
100
+ import { CoderWorkspacesCard } from '@coder/backstage-plugin-coder';
101
101
102
- <Grid item md={6} xs={12}>
103
- <CoderWorkspacesCard readEntityData />
104
- </Grid>;
102
+ // We recommend placing the component inside of overviewContent
103
+ const overviewContent = (
104
+ <Grid container spacing={3} alignItems="stretch">
105
+ {entityWarningContent}
106
+ <Grid item md={6}>
107
+ <EntityAboutCard variant="gridItem" />
108
+ </Grid>
109
+
110
+ {/* Coder component should go inside Grid to help it work with MUI layouts */}
111
+ <Grid item md={6} xs={12}>
112
+ <CoderWorkspacesCard readEntityData />
113
+ </Grid>
114
+
115
+ {/* Other elements for overviewContent go here */}
116
+ </Grid>
117
+ );
105
118
` ` `
106
119
107
120
# ## `app-config.yaml` files
You can’t perform that action at this time.
0 commit comments