Skip to content

Commit 9c49c0f

Browse files
committed
FrontEnd Update
Admin UI/UX
1 parent 85a115f commit 9c49c0f

File tree

2 files changed

+312
-294
lines changed

2 files changed

+312
-294
lines changed

admin_web_app/Source_webapp/src/views/admins/components/MakeAdmin.tsx

Lines changed: 43 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -266,49 +266,7 @@ export default function MakeAdmin() {
266266
<section className="w-full p-6 flex flex-col gap-4">
267267
<h3>Manage Roles</h3>
268268
<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">
312270
<h4 className="col-span-2 mb-2 mx-auto">Role Selection</h4>
313271
{adminRanks.map((rank, index) => (
314272
<div
@@ -383,6 +341,48 @@ export default function MakeAdmin() {
383341
</Dropdown.Item>
384342
</Dropdown>
385343
</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>
386386
</div>
387387
</div>
388388
</section>

0 commit comments

Comments
 (0)