1
0
forked from baron/baron-sso

adminfront 린트 적용

This commit is contained in:
2026-02-23 17:23:11 +09:00
parent 4dc4e19c27
commit 2da570f42c
14 changed files with 29 additions and 27 deletions

View File

@@ -192,7 +192,7 @@ export function TenantAdminsTab() {
</div>
) : usersQuery.isLoading ? (
<div className="p-10 text-center">
<div className="animate-spin rounded-full h-6 w-6 border-b-2 border-primary mx-auto"></div>
<div className="animate-spin rounded-full h-6 w-6 border-b-2 border-primary mx-auto" />
</div>
) : searchResults.length === 0 ? (
<div className="p-10 text-center text-muted-foreground">
@@ -279,7 +279,7 @@ export function TenantAdminsTab() {
{adminsQuery.isLoading ? (
<TableRow>
<TableCell colSpan={3} className="h-32 text-center">
<div className="animate-spin rounded-full h-6 w-6 border-b-2 border-primary mx-auto"></div>
<div className="animate-spin rounded-full h-6 w-6 border-b-2 border-primary mx-auto" />
</TableCell>
</TableRow>
) : currentAdmins.length === 0 ? (

View File

@@ -11,8 +11,10 @@ import {
UserPlus,
Users,
} from "lucide-react";
import React, { useState } from "react";
import type React from "react";
import { useState } from "react";
import { useParams } from "react-router-dom";
import { toast } from "sonner";
import { Badge } from "../../../components/ui/badge";
import { Button } from "../../../components/ui/button";
import {
@@ -33,15 +35,14 @@ import {
TableRow,
} from "../../../components/ui/table";
import {
type GroupSummary,
addGroupMember,
createGroup,
deleteGroup,
fetchGroups,
removeGroupMember,
type GroupSummary,
} from "../../../lib/adminApi";
import { t } from "../../../lib/i18n";
import { toast } from "sonner";
type UserGroupNode = GroupSummary & {
children: UserGroupNode[];

View File

@@ -1,7 +1,7 @@
import { useMutation, useQuery } from "@tanstack/react-query";
import type { AxiosError } from "axios";
import { CornerDownRight, Pencil, Plus, RefreshCw, Trash2 } from "lucide-react";
import React from "react";
import type React from "react";
import { Link, useNavigate } from "react-router-dom";
import { Badge } from "../../../components/ui/badge";
import { Button } from "../../../components/ui/button";
@@ -21,9 +21,9 @@ import {
TableRow,
} from "../../../components/ui/table";
import {
type TenantSummary,
deleteTenant,
fetchTenants,
type TenantSummary,
} from "../../../lib/adminApi";
import { t } from "../../../lib/i18n";