Skip to content

Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.

refactor: fix types in theme

Brad Barbin5b6cb66978f6
diff --git a/apps/carbon/app/routes/onboarding+/theme.tsx b/apps/carbon/app/routes/onboarding+/theme.tsx
index 5573406e98..8512677412 100644
--- a/apps/carbon/app/routes/onboarding+/theme.tsx
+++ b/apps/carbon/app/routes/onboarding+/theme.tsx
@@ -78,7 +78,7 @@ export async function action({ request }: ActionFunctionArgs) {
export default function OnboardingTheme() {
const { theme: initialTheme } = useLoaderData<typeof loader>();
- const [theme, setTheme] = useState<ThemeValue>(initialTheme);
+ const [theme, setTheme] = useState<ThemeValue>(initialTheme as "zinc");
const mode = useMode();
const onThemeChange = (t: Theme) => {
@@ -106,7 +106,7 @@ export default function OnboardingTheme() {
<ValidatedForm
method="post"
validator={themeValidator}
- defaultValues={{ theme: initialTheme }}
+ defaultValues={{ theme: initialTheme as "zinc" }}
>
<CardHeader>
<CardTitle>Choose your style</CardTitle>