@@ -8,7 +8,7 @@ import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
8
8
import Button from "~/components/basic/buttons/Button" ;
9
9
import AddServiceTokenDialog from "~/components/basic/dialog/AddServiceTokenDialog" ;
10
10
import InputField from "~/components/basic/InputField" ;
11
- import ServiceTokenTable from "~/components/basic/table/ServiceTokenTable" ;
11
+ import ServiceTokenTable from "~/components/basic/table/ServiceTokenTable.tsx " ;
12
12
import NavHeader from "~/components/navigation/NavHeader" ;
13
13
import { getTranslatedServerSideProps } from "~/utilities/withTranslateProps" ;
14
14
@@ -145,7 +145,7 @@ export default function SettingsBasic() {
145
145
< div className = "flex flex-col" >
146
146
< div className = "min-w-md mt-2 flex flex-col items-start" >
147
147
< div className = "bg-white/5 rounded-md px-6 pt-6 pb-4 flex flex-col items-start flex flex-col items-start w-full mb-6 pt-2" >
148
- < p className = "text-xl font-semibold mb-4" >
148
+ < p className = "text-xl font-semibold mb-4 mt-2 " >
149
149
{ t ( "common:display-name" ) }
150
150
</ p >
151
151
< div className = "max-h-28 w-full max-w-md mr-auto" >
@@ -171,7 +171,7 @@ export default function SettingsBasic() {
171
171
</ div >
172
172
</ div >
173
173
</ div >
174
- < div className = "bg-white/5 rounded-md px-6 pt-6 pb-2 flex flex-col items-start flex flex-col items-start w-full mb-6 mt-4" >
174
+ < div className = "bg-white/5 rounded-md px-6 pt-4 pb-2 flex flex-col items-start flex flex-col items-start w-full mb-6 mt-4" >
175
175
< p className = "text-xl font-semibold self-start" >
176
176
{ t ( "common:project-id" ) }
177
177
</ p >
@@ -219,7 +219,7 @@ export default function SettingsBasic() {
219
219
</ div >
220
220
</ div >
221
221
</ div >
222
- < div className = "bg-white/5 rounded-md px-6 pt-6 flex flex-col items-start flex flex-col items-start w-full mt-4 mb-4 pt-2" >
222
+ < div className = "bg-white/5 rounded-md px-6 pt-4 flex flex-col items-start flex flex-col items-start w-full mt-4 mb-4 pt-2" >
223
223
< div className = "flex flex-row justify-between w-full" >
224
224
< div className = "flex flex-col w-full" >
225
225
< p className = "text-xl font-semibold mb-3" >
@@ -244,47 +244,12 @@ export default function SettingsBasic() {
244
244
< ServiceTokenTable
245
245
data = { serviceTokens }
246
246
workspaceName = { workspaceName }
247
+ setServiceTokens = { setServiceTokens }
247
248
/>
248
249
</ div >
249
-
250
- { /* <div className="bg-white/5 rounded-md px-6 flex flex-col items-start flex flex-col items-start w-full mb-6 mt-4 pb-6 pt-6">
251
- <p className="text-xl font-semibold self-start">
252
- Project Environments
253
- </p>
254
- <p className="text-md mr-1 text-gray-400 mt-2 self-start">
255
- Choose which environments will show up
256
- in your Dashboard. Some common ones
257
- include Development, Staging, and
258
- Production. Often, teams choose to add
259
- Testing.
260
- </p>
261
- <p className="text-sm mr-1 text-gray-500 self-start">
262
- Note: the text in brackets shows how
263
- these environmant should be accessed in
264
- CLI.
265
- </p>
266
- <div className="rounded-md h-10 w-full mr-auto mt-4 flex flex-row">
267
- {envOptions.map((env) => (
268
- <div className="bg-white/5 hover:bg-white/10 duration-200 h-full w-max px-3 flex flex-row items-center justify-between rounded-md mr-1 text-sm">
269
- {env}
270
- <XIcon
271
- className="h-5 w-5 ml-2 mt-0.5 text-white cursor-pointer"
272
- aria-hidden="true"
273
- />
274
- </div>
275
- ))}
276
- <div className="group bg-white/5 hover:bg-primary hover:text-black duration-200 h-full w-max py-1 px-3 flex flex-row items-center justify-between rounded-md mr-1 cursor-pointer text-sm font-semibold">
277
- <PlusIcon
278
- className="h-5 w-5 text-white mr-2 group-hover:text-black"
279
- aria-hidden="true"
280
- />
281
- Add
282
- </div>
283
- </div>
284
- </div> */ }
285
250
</ div >
286
251
</ div >
287
- < div className = "bg-white/5 rounded-md px-6 pt-6 pb-6 border-l border-red pl-6 flex flex-col items-start flex flex-col items-start w-full mb-6 mt-4 pb-4 pt-2" >
252
+ < div className = "bg-white/5 rounded-md px-6 pt-4 pb-6 border-l border-red pl-6 flex flex-col items-start flex flex-col items-start w-full mb-6 mt-4 pb-4 pt-2" >
288
253
< p className = "text-xl font-bold text-red" >
289
254
{ t ( "settings-project:danger-zone" ) }
290
255
</ p >
0 commit comments