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.

docs: add toaster to example app

Brad Barbin8a5607a59266
diff --git a/examples/upload-3d-model/app/root.tsx b/examples/upload-3d-model/app/root.tsx
index 1b342ce956..da5a1deeca 100644
--- a/examples/upload-3d-model/app/root.tsx
+++ b/examples/upload-3d-model/app/root.tsx
@@ -1,3 +1,4 @@
+import { Toaster } from "@carbon/react";
import {
isRouteErrorResponse,
Links,
@@ -45,6 +46,7 @@ function Document({
</head>
<body className="h-full bg-background antialiased selection:bg-primary/10 selection:text-primary">
{children}
+ <Toaster />
<ScrollRestoration />
<Scripts />
</body>
diff --git a/examples/upload-3d-model/app/routes/_index.tsx b/examples/upload-3d-model/app/routes/_index.tsx
index 735b84a1f0..e3f70c8100 100644
--- a/examples/upload-3d-model/app/routes/_index.tsx
+++ b/examples/upload-3d-model/app/routes/_index.tsx
@@ -48,6 +48,7 @@ export default function Route() {
if (fetcher.data?.data) {
setFile(null);
setUrl(fetcher.data.data.url);
+ toast.success("Model uploaded successfully");
}
}, [fetcher.data]);
@@ -69,7 +70,7 @@ export default function Route() {
<TooltipProvider>
<div className="flex h-screen w-screen flex-col items-center justify-center p-4">
<div className="max-w-xl text-center flex flex-col gap-8">
- <Heading size="h1">Upload a 3D Model</Heading>
+ <Heading size="h1">Upload a Public 3D Model</Heading>
{url && (
<InputGroup>
<Input value={url} />