forked from baron/baron-sso
refactor(adminfront): replace sonner with custom use-toast matching devfront UX policy
This commit is contained in:
@@ -19,7 +19,7 @@ import {
|
||||
useForm,
|
||||
} from "react-hook-form";
|
||||
import { Link, useNavigate, useParams } from "react-router-dom";
|
||||
import { toast } from "sonner";
|
||||
import { toast } from "../../components/ui/use-toast";
|
||||
import { Button } from "../../components/ui/button";
|
||||
import {
|
||||
Card,
|
||||
@@ -149,7 +149,7 @@ function TenantProfileCard({
|
||||
/>
|
||||
{errors.metadata?.[tenant.id]?.[field.key] && (
|
||||
<p className="text-[10px] text-destructive">
|
||||
{errors.metadata[tenant.id][field.key].message}
|
||||
{(errors.metadata as any)?.[tenant.id]?.[field.key]?.message}
|
||||
</p>
|
||||
)}
|
||||
</div>
|
||||
@@ -248,7 +248,7 @@ function UserDetailPage() {
|
||||
position: user.position || "",
|
||||
jobTitle: user.jobTitle || "",
|
||||
password: "",
|
||||
metadata: user.metadata || {},
|
||||
metadata: (user.metadata || {}) as any,
|
||||
});
|
||||
}
|
||||
}, [user, reset]);
|
||||
|
||||
Reference in New Issue
Block a user