@bbki.ng/components 2.1.39 → 2.1.40
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.cjs +7 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +7 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -48,6 +48,7 @@ var Logo = React3.memo(
|
|
|
48
48
|
height: "48",
|
|
49
49
|
viewBox: "0 0 48 48",
|
|
50
50
|
fill: "none",
|
|
51
|
+
onClick: props.onClick,
|
|
51
52
|
className: props.className
|
|
52
53
|
}, /* @__PURE__ */ React3.createElement("path", {
|
|
53
54
|
d: "M29.1152 21.3106C32.0605 21.3106 34.4481 18.9101 34.4481 15.9489V24.6457C34.4481 25.7585 33.5508 26.6607 32.444 26.6607H15.1207C14.0138 26.6607 13.1166 25.7585 13.1166 24.6457V15.9489C13.1166 18.9101 15.5042 21.3106 18.4494 21.3106C21.3947 21.3106 23.7823 18.9101 23.7823 15.9489C23.7823 18.9101 26.17 21.3106 29.1152 21.3106Z",
|
|
@@ -182,6 +183,7 @@ var BlinkDot = (props) => {
|
|
|
182
183
|
};
|
|
183
184
|
|
|
184
185
|
// lib/nav/Nav.tsx
|
|
186
|
+
import { useNavigate } from "react-router-dom";
|
|
185
187
|
var Nav = (props) => {
|
|
186
188
|
if (props.mini) {
|
|
187
189
|
return /* @__PURE__ */ React7.createElement("div", {
|
|
@@ -190,10 +192,14 @@ var Nav = (props) => {
|
|
|
190
192
|
paths: props.paths
|
|
191
193
|
}));
|
|
192
194
|
}
|
|
195
|
+
const nav = useNavigate();
|
|
193
196
|
return /* @__PURE__ */ React7.createElement("div", {
|
|
194
197
|
className: `p-8 w-full flex items-center ${props.className}`
|
|
195
198
|
}, /* @__PURE__ */ React7.createElement(Logo, {
|
|
196
|
-
className: "mr-8"
|
|
199
|
+
className: "mr-8",
|
|
200
|
+
onClick: () => {
|
|
201
|
+
nav("/");
|
|
202
|
+
}
|
|
197
203
|
}), /* @__PURE__ */ React7.createElement(Breadcrumb, {
|
|
198
204
|
paths: props.paths
|
|
199
205
|
}), props.loading && /* @__PURE__ */ React7.createElement(BlinkDot, {
|