forked from baron/baron-sso
린트 적용3
This commit is contained in:
@@ -9,7 +9,11 @@ import {
|
||||
Users,
|
||||
} from "lucide-react";
|
||||
import * as React from "react";
|
||||
import { useForm } from "react-hook-form";
|
||||
import {
|
||||
type FieldErrors,
|
||||
type UseFormRegister,
|
||||
useForm,
|
||||
} from "react-hook-form";
|
||||
import { Link, useNavigate, useParams } from "react-router-dom";
|
||||
import { Button } from "../../components/ui/button";
|
||||
import {
|
||||
@@ -22,6 +26,7 @@ import {
|
||||
import { Input } from "../../components/ui/input";
|
||||
import { Label } from "../../components/ui/label";
|
||||
import {
|
||||
type TenantSummary,
|
||||
type UserUpdateRequest,
|
||||
fetchMe,
|
||||
fetchTenant,
|
||||
@@ -40,7 +45,7 @@ type UserSchemaField = {
|
||||
validation?: string;
|
||||
};
|
||||
|
||||
type UserFormValues = UserUpdateRequest & { metadata: Record<string, unknown> };
|
||||
type UserFormValues = UserUpdateRequest & { metadata: Record<string, Record<string, unknown>> };
|
||||
|
||||
// [New] Component for per-tenant profile/schema management
|
||||
function TenantProfileCard({
|
||||
@@ -49,9 +54,9 @@ function TenantProfileCard({
|
||||
errors,
|
||||
isAdmin,
|
||||
}: {
|
||||
tenant: any;
|
||||
register: any;
|
||||
errors: any;
|
||||
tenant: TenantSummary;
|
||||
register: UseFormRegister<UserFormValues>;
|
||||
errors: FieldErrors<UserFormValues>;
|
||||
isAdmin: boolean;
|
||||
}) {
|
||||
const { data: detail, isLoading } = useQuery({
|
||||
|
||||
Reference in New Issue
Block a user