add admin checks for admin pages and run biome formating 🔨
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 11m8s

This commit is contained in:
2025-07-25 13:31:12 +05:00
parent aedf7cdf7d
commit 9b2f2c1528
127 changed files with 6577 additions and 6334 deletions

View File

@ -52,9 +52,7 @@ export async function DevicesTable({
}
apiParams.limit = limit;
apiParams.offset = offset;
const [error, devices] = await tryCatch(
getDevices(apiParams),
);
const [error, devices] = await tryCatch(getDevices(apiParams));
if (error) {
if (error.message === "UNAUTHORIZED") {
redirect("/auth/signin");
@ -96,9 +94,7 @@ export async function DevicesTable({
<TableRow>
<TableCell colSpan={4} className="text-muted-foreground">
{meta?.total === 1 ? (
<p className="text-center">
Total {meta?.total} device.
</p>
<p className="text-center">Total {meta?.total} device.</p>
) : (
<p className="text-center">
Total {meta?.total} devices.
@ -123,8 +119,7 @@ export async function DevicesTable({
currentPage={meta?.current_page}
/>
</>
)
}
</div >
)}
</div>
);
}