File tree Expand file tree Collapse file tree 1 file changed +18
-16
lines changed
components/dashboard/src/projects Expand file tree Collapse file tree 1 file changed +18
-16
lines changed Original file line number Diff line number Diff line change 5
5
*/
6
6
7
7
import { Project , ProjectSettings } from "@gitpod/gitpod-protocol" ;
8
- import { useCallback , useContext , useState } from "react" ;
8
+ import { useCallback , useContext , useState , Fragment } from "react" ;
9
9
import { useHistory } from "react-router" ;
10
10
import { CheckboxInputField } from "../components/forms/CheckboxInputField" ;
11
11
import { PageWithSubMenu } from "../components/PageWithSubMenu" ;
@@ -145,21 +145,23 @@ export default function ProjectSettingsView() {
145
145
< CheckboxInputField
146
146
label = "Enable prebuilds"
147
147
hint = {
148
- enablePrebuilds ? (
149
- < span >
150
- Prebuilds will run for any < code > before</ code > or < code > init</ code > tasks.{ " " }
151
- < a
152
- className = "gp-link"
153
- target = "_blank"
154
- rel = "noreferrer"
155
- href = "https://www.gitpod.io/docs/configure/projects/prebuilds"
156
- >
157
- Learn more
158
- </ a >
159
- </ span >
160
- ) : (
161
- "Requires permissions to configure repository webhooks."
162
- )
148
+ < span >
149
+ { enablePrebuilds ? (
150
+ < Fragment >
151
+ Prebuilds will run for any < code > before</ code > or < code > init</ code > tasks.
152
+ </ Fragment >
153
+ ) : (
154
+ "Requires permissions to configure repository webhooks."
155
+ ) } { " " }
156
+ < a
157
+ className = "gp-link"
158
+ target = "_blank"
159
+ rel = "noreferrer"
160
+ href = "https://www.gitpod.io/docs/configure/projects/prebuilds"
161
+ >
162
+ Learn more
163
+ </ a >
164
+ </ span >
163
165
}
164
166
checked = { enablePrebuilds }
165
167
onChange = { ( checked ) => updateProjectSettings ( { enablePrebuilds : checked } ) }
You can’t perform that action at this time.
0 commit comments