@@ -266,49 +266,7 @@ export default function MakeAdmin() {
266
266
< section className = "w-full p-6 flex flex-col gap-4" >
267
267
< h3 > Manage Roles</ h3 >
268
268
< div className = "flex flex-col-reverse lg:flex-row gap-10 " >
269
- < div className = "w-full lg:w-1/2 flex flex-col gap-4" >
270
- < Input
271
- className = "w-full"
272
- type = "email"
273
- placeholder = "admin.email@example.com"
274
- value = { inputValue }
275
- onChange = { handleInputChange }
276
- disabled = { searching || selected ? true : false }
277
- />
278
-
279
- < div className = "w-full flex flex-col lg:flex-row gap-2 overflow-hidden" >
280
- < Button
281
- onClick = { handleSearch }
282
- className = "xl:w-1/3 w-full"
283
- variant = "solid"
284
- disabled = { selected ? true : false }
285
- loading = { searching }
286
- >
287
- Search
288
- </ Button >
289
- < Button
290
- onClick = { handleRankApply }
291
- className = "xl:w-1/3 w-full"
292
- variant = "solid"
293
- color = "green"
294
- disabled = { selected ? false : true }
295
- loading = { apiCalling }
296
- >
297
- Apply
298
- </ Button >
299
- < Button
300
- onClick = { cancelSearch }
301
- className = "xl:w-1/3 w-full"
302
- variant = "solid"
303
- color = "yellow"
304
- disabled = { selected ? false : true }
305
- loading = { apiCalling }
306
- >
307
- Cancel
308
- </ Button >
309
- </ div >
310
- </ div >
311
- < div className = "w-full lg:w-1/2 flex flex-col sm:grid sm:grid-cols-2 gap-4 px-4 py-6 border border-gray-600 rounded-lg" >
269
+ < div className = "w-full xl:w-3/5 max-w-[800px] flex flex-col sm:grid sm:grid-cols-2 gap-4 px-4 py-6 border border-gray-600 rounded-lg" >
312
270
< h4 className = "col-span-2 mb-2 mx-auto" > Role Selection</ h4 >
313
271
{ adminRanks . map ( ( rank , index ) => (
314
272
< div
@@ -383,6 +341,48 @@ export default function MakeAdmin() {
383
341
</ Dropdown . Item >
384
342
</ Dropdown >
385
343
</ div >
344
+ < div className = "col-span-2 w-full flex flex-col gap-4" >
345
+ < Input
346
+ className = "w-full"
347
+ type = "email"
348
+ placeholder = "admin.email@example.com"
349
+ value = { inputValue }
350
+ onChange = { handleInputChange }
351
+ disabled = { searching || selected ? true : false }
352
+ />
353
+
354
+ < div className = "w-full flex flex-col lg:flex-row gap-2 overflow-hidden" >
355
+ < Button
356
+ onClick = { handleSearch }
357
+ className = "xl:w-1/3 w-full"
358
+ variant = "solid"
359
+ disabled = { selected ? true : false }
360
+ loading = { searching }
361
+ >
362
+ Search
363
+ </ Button >
364
+ < Button
365
+ onClick = { handleRankApply }
366
+ className = "xl:w-1/3 w-full"
367
+ variant = "solid"
368
+ color = "green"
369
+ disabled = { selected ? false : true }
370
+ loading = { apiCalling }
371
+ >
372
+ Apply
373
+ </ Button >
374
+ < Button
375
+ onClick = { cancelSearch }
376
+ className = "xl:w-1/3 w-full"
377
+ variant = "solid"
378
+ color = "yellow"
379
+ disabled = { selected ? false : true }
380
+ loading = { apiCalling }
381
+ >
382
+ Cancel
383
+ </ Button >
384
+ </ div >
385
+ </ div >
386
386
</ div >
387
387
</ div >
388
388
</ section >
0 commit comments