This commit is contained in:
Laux Dev
2026-03-17 17:02:41 +08:00
parent 7745c83bbd
commit a220230d0b
16 changed files with 412 additions and 131 deletions

View File

@@ -112,30 +112,32 @@ const AgentsPage = () => {
topbarTitle="Agents"
requiredButtons={["title", "add", "search"]}
/>
{isMobile ? (
<div className={styles.cardContainer}>
<MobileSearchBar />
{sampleData.map((data, key) => {
<div className={styles.cardContainer}>
<MobileSearchBar />
{isMobile &&
sampleData.map((data, key) => {
return <Card data={data} key={key} />;
})}
</div>
) : (
<div className={styles.tableContainer}>
<table className={styles.table}>
<thead>
<tr>
<th width="25%">Name</th>
<th>Endpoint</th>
<th>Type</th>
<th>Proxy Name</th>
<th>Date Created</th>
</div>
<th width="10%"></th>
</tr>
</thead>
<div className={styles.tableContainer}>
<table className={styles.table}>
<thead>
<tr>
<th width="25%">Name</th>
<th>Endpoint</th>
<th>Type</th>
<th>Proxy Name</th>
<th>Date Created</th>
<tbody>
{sampleData.map((org, index) => {
<th width="10%"></th>
</tr>
</thead>
<tbody>
{!isMobile &&
sampleData.map((org, index) => {
return (
<tr
key={index}
@@ -161,10 +163,9 @@ const AgentsPage = () => {
</tr>
);
})}
</tbody>
</table>
</div>
)}
</tbody>
</table>
</div>
</div>
</div>
</div>