more fixes

This commit is contained in:
Lokowitz
2025-05-17 20:04:56 +00:00
parent eff812eaa8
commit d9ee40c898
48 changed files with 122 additions and 135 deletions

View File

@@ -11,7 +11,6 @@ import { ListUserOrgsResponse } from "@server/routers/org";
import { internal } from "@app/lib/api";
import { AxiosResponse } from "axios";
import { authCookieHeader } from "@app/lib/api/cookies";
import { useTranslations } from "next-intl";
export const metadata: Metadata = {
title: `Setup - Pangolin`,

View File

@@ -45,6 +45,7 @@ const orgSchema = z.object({
export default function StepperForm() {
const [currentStep, setCurrentStep] = useState<Step>("org");
const [orgIdTaken, setOrgIdTaken] = useState(false);
const t = useTranslations();
const [loading, setLoading] = useState(false);
const [isChecked, setIsChecked] = useState(false);
@@ -106,15 +107,13 @@ export default function StepperForm() {
} catch (e) {
console.error(e);
setError(
formatAxiosError(e, "An error occurred while creating org")
formatAxiosError(e, t('orgErrorCreate'))
);
}
setLoading(false);
}
const t = useTranslations();
return (
<>
<Card>