fix(GRO-213): resolve 3 type errors blocking CI
- setup.ts:73: cast result.code to 409 to satisfy ContentfulStatusCode - SetupWizard.jsx: quote CSS rem value (2rem -> "2rem") — inline styles require strings for CSS units - SetupWizard.js: rename to .jsx so Vite can parse JSX (QA requirement) - App.tsx: update import to .jsx extension - Add SetupWizard.d.ts type declaration for .jsx module resolution Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
committed by
Flea Flicker
parent
1c82a75a88
commit
3b1212250a
@@ -70,7 +70,7 @@ setupRouter.post("/", zValidator("json", setupSchema), async (c) => {
|
||||
});
|
||||
|
||||
if ("error" in result) {
|
||||
return c.json({ error: result.error }, result.code);
|
||||
return c.json({ error: result.error }, result.code as 409);
|
||||
}
|
||||
|
||||
return c.json({ ok: true, staff: result.staff }, 201);
|
||||
|
||||
Reference in New Issue
Block a user