@tirth_jasoliya/ui 1.0.1 → 1.0.2

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.js CHANGED
@@ -2271,6 +2271,7 @@ var AppContainer = ({
2271
2271
 
2272
2272
  // src/components/layouts/app-header.tsx
2273
2273
  import { ArrowLeftIcon, ChevronRight as ChevronRight2 } from "lucide-react";
2274
+ import { NavLink } from "react-router";
2274
2275
  import { jsx as jsx27, jsxs as jsxs17 } from "react/jsx-runtime";
2275
2276
  var AppHeader = ({
2276
2277
  className,
@@ -2286,10 +2287,10 @@ var AppHeader = ({
2286
2287
  className: "hover:bg-primary/20 inline-flex"
2287
2288
  };
2288
2289
  if (meta.backAction.href) {
2289
- return /* @__PURE__ */ jsxs17(Button, { ...buttonProps, children: [
2290
+ return /* @__PURE__ */ jsx27(NavLink, { to: meta.backAction.href, children: /* @__PURE__ */ jsxs17(Button, { ...buttonProps, children: [
2290
2291
  /* @__PURE__ */ jsx27(ArrowLeftIcon, { className: "size-6" }),
2291
2292
  meta.backAction.content
2292
- ] });
2293
+ ] }) });
2293
2294
  }
2294
2295
  return /* @__PURE__ */ jsxs17(Button, { ...buttonProps, onClick: meta.backAction.onClick, children: [
2295
2296
  /* @__PURE__ */ jsx27(ArrowLeftIcon, { className: "size-6" }),
@@ -2775,7 +2776,6 @@ function createPageTemplateHook({
2775
2776
  return {
2776
2777
  ...options.backAction,
2777
2778
  onClick: options.backAction.onClick
2778
- // Keep as is - we'll handle stabilization differently
2779
2779
  };
2780
2780
  }, [options.backAction?.content, options.backAction?.href, options.backAction?.onClick?.toString()]);
2781
2781
  const metadata = useMemo4(() => options.metadata, [JSON.stringify(options.metadata)]);