File tree Expand file tree Collapse file tree 1 file changed +18
-9
lines changed
frontend/components/environments Expand file tree Collapse file tree 1 file changed +18
-9
lines changed Original file line number Diff line number Diff line change @@ -69,15 +69,24 @@ const RenameEnvironment = (props: { environment: EnvironmentType }) => {
69
69
? 'Upgrade to Pro to rename Environments'
70
70
: "You don't have the permissions required to rename this Environment" }
71
71
</ Alert >
72
- < Input
73
- value = { sanitizeInput ( name ) }
74
- setValue = { setName }
75
- label = "Environment name"
76
- required
77
- maxLength = { 32 }
78
- data-autofocus
79
- disabled = { ! allowRename }
80
- />
72
+
73
+ < div className = "space-y-2" >
74
+ < Input
75
+ value = { sanitizeInput ( name ) }
76
+ setValue = { setName }
77
+ label = "Environment name"
78
+ required
79
+ maxLength = { 32 }
80
+ data-autofocus
81
+ disabled = { ! allowRename }
82
+ />
83
+ { allowRename && (
84
+ < p className = "text-xs text-neutral-500" >
85
+ Use up to 32 characters. Only letters, numbers, hyphens and underscores allowed.
86
+ </ p >
87
+ ) }
88
+ </ div >
89
+
81
90
{ allowRename && (
82
91
< div className = "flex justify-end" >
83
92
< Button type = "submit" variant = "primary" disabled = { name === props . environment . name } >
You can’t perform that action at this time.
0 commit comments