File tree 1 file changed +14
-2
lines changed
packages/client/src/admin
1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -37,9 +37,16 @@ export default function ProjectAPIKeys({ projectId }: { projectId: number }) {
37
37
) ;
38
38
39
39
return (
40
- < div className = "" >
40
+ < div >
41
41
< div className = "shadow sm:rounded-md sm:overflow-hidden" >
42
- < div className = "px-4 py-5 bg-white sm:p-6 space-y-5" >
42
+ < div
43
+ style = {
44
+ apiKeysQuery ?. data ?. project ?. apiKeysConnection . nodes . length === 0
45
+ ? { paddingBottom : 0 }
46
+ : { }
47
+ }
48
+ className = { `py-5 px-4 bg-white sm:p-6 space-y-5` }
49
+ >
43
50
< h3 className = "text-lg font-medium leading-6 text-gray-900" >
44
51
{ t ( "API Keys" ) }
45
52
</ h3 >
@@ -149,6 +156,11 @@ export default function ProjectAPIKeys({ projectId }: { projectId: number }) {
149
156
</ div >
150
157
) }
151
158
< Button
159
+ className = {
160
+ apiKeysQuery . data ?. project ?. apiKeysConnection ?. nodes ?. length === 0
161
+ ? "-top-12"
162
+ : ""
163
+ }
152
164
onClick = { ( ) => {
153
165
prompt ( {
154
166
placeholder : "e.g. data-access-geoprocessing-prod" ,
You can’t perform that action at this time.
0 commit comments