Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
Update frontend/src/pages/SuperAdminPanel.jsx
Browse files
frontend/src/pages/SuperAdminPanel.jsx
CHANGED
|
@@ -850,7 +850,7 @@ const SuperAdminPanel = () => {
|
|
| 850 |
</h2>
|
| 851 |
<div className="bg-surface-container-lowest border border-outline-variant rounded-2xl overflow-hidden shadow-sm">
|
| 852 |
{loading ? <div className="p-10 text-center text-on-surface-variant text-[14px]">Fetching logs...</div> : (
|
| 853 |
-
<div className="overflow-x-auto max-h-[400px]">
|
| 854 |
<table className="w-full text-left text-sm border-collapse">
|
| 855 |
<thead className="bg-surface-container text-on-surface-variant border-b border-outline-variant sticky top-0 select-none">
|
| 856 |
<tr>
|
|
@@ -910,7 +910,7 @@ const SuperAdminPanel = () => {
|
|
| 910 |
</div>
|
| 911 |
<div className="bg-surface-container-lowest border border-outline-variant rounded-2xl overflow-hidden shadow-sm">
|
| 912 |
{loading ? <div className="p-10 text-center text-on-surface-variant text-[14px]">Fetching logs...</div> : (
|
| 913 |
-
<div className="overflow-x-auto max-h-[400px]">
|
| 914 |
<table className="w-full text-left text-sm border-collapse">
|
| 915 |
<thead className="bg-surface-container text-on-surface-variant border-b border-outline-variant sticky top-0">
|
| 916 |
<tr>
|
|
@@ -944,7 +944,7 @@ const SuperAdminPanel = () => {
|
|
| 944 |
{activeTab === 'organizations' && (
|
| 945 |
<div className="flex flex-col gap-md mb-xl animate-fade-in">
|
| 946 |
<h2 className="font-headline-sm font-bold text-on-surface flex items-center text-[18px] mb-md"><Shield className="w-5 h-5 text-primary mr-2" /> Client Organizations Directory</h2>
|
| 947 |
-
<div className="bg-surface-container-lowest border border-outline-variant rounded-2xl overflow-hidden shadow-sm">
|
| 948 |
{loading ? <div className="p-10 text-center text-on-surface-variant">Fetching directory...</div> : (
|
| 949 |
<table className="w-full text-left text-sm border-collapse">
|
| 950 |
<thead className="bg-surface-container text-on-surface-variant border-b border-outline-variant select-none">
|
|
@@ -1027,7 +1027,7 @@ const SuperAdminPanel = () => {
|
|
| 1027 |
<button onClick={handleAddMember} className="flex items-center px-4 py-2 bg-primary text-white rounded-lg hover:brightness-110 transition-all font-bold text-[13.5px] border-0 cursor-pointer"><Plus className="w-4 h-4 mr-2" /> Add Member</button>
|
| 1028 |
)}
|
| 1029 |
</div>
|
| 1030 |
-
<div className="bg-surface-container-lowest border border-outline-variant rounded-2xl overflow-hidden shadow-sm">
|
| 1031 |
{loading ? <div className="p-10 text-center text-on-surface-variant">Fetching users...</div> : (
|
| 1032 |
<table className="w-full text-left text-sm border-collapse">
|
| 1033 |
<thead className="bg-surface-container text-on-surface-variant border-b border-outline-variant select-none">
|
|
@@ -1448,7 +1448,7 @@ const SuperAdminPanel = () => {
|
|
| 1448 |
{rescheduleModal.isOpen && (
|
| 1449 |
<div className="fixed inset-0 z-[9999] flex items-center justify-center p-4">
|
| 1450 |
<div className="fixed inset-0 bg-slate-900/60 backdrop-blur-sm" onClick={() => setRescheduleModal({ ...rescheduleModal, isOpen: false })}></div>
|
| 1451 |
-
<div className="relative bg-white dark:bg-slate-900 rounded-2xl border border-slate-200 dark:border-slate-800 shadow-2xl max-w-md w-full p-6 z-10 animate-slide-up text-left font-sans">
|
| 1452 |
<div className="flex justify-between items-center pb-3 border-b border-slate-100 dark:border-slate-800">
|
| 1453 |
<h3 className="text-lg font-bold text-slate-900 dark:text-white flex items-center gap-2">
|
| 1454 |
<span className="material-symbols-outlined text-primary">edit_calendar</span>
|
|
|
|
| 850 |
</h2>
|
| 851 |
<div className="bg-surface-container-lowest border border-outline-variant rounded-2xl overflow-hidden shadow-sm">
|
| 852 |
{loading ? <div className="p-10 text-center text-on-surface-variant text-[14px]">Fetching logs...</div> : (
|
| 853 |
+
<div className="overflow-x-auto max-h-[400px] hide-scrollbar">
|
| 854 |
<table className="w-full text-left text-sm border-collapse">
|
| 855 |
<thead className="bg-surface-container text-on-surface-variant border-b border-outline-variant sticky top-0 select-none">
|
| 856 |
<tr>
|
|
|
|
| 910 |
</div>
|
| 911 |
<div className="bg-surface-container-lowest border border-outline-variant rounded-2xl overflow-hidden shadow-sm">
|
| 912 |
{loading ? <div className="p-10 text-center text-on-surface-variant text-[14px]">Fetching logs...</div> : (
|
| 913 |
+
<div className="overflow-x-auto max-h-[400px] hide-scrollbar">
|
| 914 |
<table className="w-full text-left text-sm border-collapse">
|
| 915 |
<thead className="bg-surface-container text-on-surface-variant border-b border-outline-variant sticky top-0">
|
| 916 |
<tr>
|
|
|
|
| 944 |
{activeTab === 'organizations' && (
|
| 945 |
<div className="flex flex-col gap-md mb-xl animate-fade-in">
|
| 946 |
<h2 className="font-headline-sm font-bold text-on-surface flex items-center text-[18px] mb-md"><Shield className="w-5 h-5 text-primary mr-2" /> Client Organizations Directory</h2>
|
| 947 |
+
<div className="bg-surface-container-lowest border border-outline-variant rounded-2xl overflow-hidden shadow-sm overflow-x-auto hide-scrollbar">
|
| 948 |
{loading ? <div className="p-10 text-center text-on-surface-variant">Fetching directory...</div> : (
|
| 949 |
<table className="w-full text-left text-sm border-collapse">
|
| 950 |
<thead className="bg-surface-container text-on-surface-variant border-b border-outline-variant select-none">
|
|
|
|
| 1027 |
<button onClick={handleAddMember} className="flex items-center px-4 py-2 bg-primary text-white rounded-lg hover:brightness-110 transition-all font-bold text-[13.5px] border-0 cursor-pointer"><Plus className="w-4 h-4 mr-2" /> Add Member</button>
|
| 1028 |
)}
|
| 1029 |
</div>
|
| 1030 |
+
<div className="bg-surface-container-lowest border border-outline-variant rounded-2xl overflow-hidden shadow-sm overflow-x-auto hide-scrollbar">
|
| 1031 |
{loading ? <div className="p-10 text-center text-on-surface-variant">Fetching users...</div> : (
|
| 1032 |
<table className="w-full text-left text-sm border-collapse">
|
| 1033 |
<thead className="bg-surface-container text-on-surface-variant border-b border-outline-variant select-none">
|
|
|
|
| 1448 |
{rescheduleModal.isOpen && (
|
| 1449 |
<div className="fixed inset-0 z-[9999] flex items-center justify-center p-4">
|
| 1450 |
<div className="fixed inset-0 bg-slate-900/60 backdrop-blur-sm" onClick={() => setRescheduleModal({ ...rescheduleModal, isOpen: false })}></div>
|
| 1451 |
+
<div className="relative bg-white dark:bg-slate-900 rounded-2xl border border-slate-200 dark:border-slate-800 shadow-2xl max-w-md w-full p-6 z-10 animate-slide-up text-left font-sans hide-scrollbar">
|
| 1452 |
<div className="flex justify-between items-center pb-3 border-b border-slate-100 dark:border-slate-800">
|
| 1453 |
<h3 className="text-lg font-bold text-slate-900 dark:text-white flex items-center gap-2">
|
| 1454 |
<span className="material-symbols-outlined text-primary">edit_calendar</span>
|