@olwiba/ui 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/RootErrorFallback.tsx +5 -7
package/dist/index.d.ts
CHANGED
|
@@ -923,9 +923,9 @@ declare function RegisterHotkeys({ hotkeys }: RegisterHotkeysProps): null;
|
|
|
923
923
|
|
|
924
924
|
interface RootErrorFallbackProps {
|
|
925
925
|
error: Error;
|
|
926
|
-
|
|
926
|
+
reset: () => void;
|
|
927
927
|
}
|
|
928
|
-
declare function RootErrorFallback({ error,
|
|
928
|
+
declare function RootErrorFallback({ error, reset }: RootErrorFallbackProps): react_jsx_runtime.JSX.Element;
|
|
929
929
|
|
|
930
930
|
interface PostCardProps {
|
|
931
931
|
title: string;
|
package/dist/index.js
CHANGED
|
@@ -2322,14 +2322,14 @@ function RegisterHotkeys({ hotkeys }) {
|
|
|
2322
2322
|
}, [hotkeys]);
|
|
2323
2323
|
return null;
|
|
2324
2324
|
}
|
|
2325
|
-
function RootErrorFallback({ error,
|
|
2325
|
+
function RootErrorFallback({ error, reset }) {
|
|
2326
2326
|
return /* @__PURE__ */ jsxs("div", { className: "flex min-h-svh flex-col items-center justify-center gap-6 p-8 text-center", children: [
|
|
2327
2327
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center gap-3", children: [
|
|
2328
2328
|
/* @__PURE__ */ jsx(AlertTriangle, { className: "size-12 text-destructive" }),
|
|
2329
2329
|
/* @__PURE__ */ jsx("h2", { className: "text-xl font-semibold", children: "Something went wrong" }),
|
|
2330
2330
|
/* @__PURE__ */ jsx("p", { className: "max-w-md text-sm text-muted-foreground", children: error.message || "An unexpected error occurred." })
|
|
2331
2331
|
] }),
|
|
2332
|
-
|
|
2332
|
+
/* @__PURE__ */ jsx(Button$1, { onClick: reset, variant: "outline", children: "Try again" })
|
|
2333
2333
|
] });
|
|
2334
2334
|
}
|
|
2335
2335
|
function formatDate(dateStr) {
|