remove unused useTheme import and add loading state for entity detail view (#154)

This commit is contained in:
dswbx
2025-04-22 15:43:27 +02:00
committed by GitHub
parent 4c11789ea8
commit 9010401af6
2 changed files with 30 additions and 22 deletions

View File

@@ -10,7 +10,6 @@ import { SocialLink } from "./SocialLink";
import type { ValueError } from "@sinclair/typebox/value";
import { type TSchema, Value } from "core/utils";
import type { Validator } from "json-schema-form-react";
import { useTheme } from "ui/client/use-theme";
class TypeboxValidator implements Validator<ValueError> {
async validate(schema: TSchema, data: any) {
@@ -46,7 +45,6 @@ export function AuthForm({
buttonLabel = action === "login" ? "Sign in" : "Sign up",
...props
}: LoginFormProps) {
const { theme } = useTheme();
const basepath = auth?.basepath ?? "/api/auth";
const password = {
action: `${basepath}/password/${action}`,