diff --git a/ui/litellm-dashboard/src/components/add_model/handle_add_auto_router_submit.tsx b/ui/litellm-dashboard/src/components/add_model/handle_add_auto_router_submit.tsx index 60b68fc4c94..d2ccefa73d6 100644 --- a/ui/litellm-dashboard/src/components/add_model/handle_add_auto_router_submit.tsx +++ b/ui/litellm-dashboard/src/components/add_model/handle_add_auto_router_submit.tsx @@ -71,7 +71,7 @@ export const handleAddAutoRouterSubmit = async (values: any, accessToken: string // Show success notification const routerTypeName = values.model_type === "complexity_router" ? "Complexity Router" : "Semantic Router"; - NotificationManager.fromBackend(`Successfully created ${routerTypeName}: ${values.auto_router_name}`, "success"); + NotificationManager.success(`Successfully created ${routerTypeName}: ${values.auto_router_name}`); // Reset the form form.resetFields(); diff --git a/ui/litellm-dashboard/tsconfig.json b/ui/litellm-dashboard/tsconfig.json index 5b0352feb98..d24bdd340f7 100644 --- a/ui/litellm-dashboard/tsconfig.json +++ b/ui/litellm-dashboard/tsconfig.json @@ -14,7 +14,7 @@ "moduleResolution": "bundler", "resolveJsonModule": true, "isolatedModules": true, - "jsx": "preserve", + "jsx": "react-jsx", "incremental": true, "plugins": [ {