braid-ui 1.0.33 → 1.0.34
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 +12 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +12 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -4288,7 +4288,7 @@ var PageLayout = React15__namespace.forwardRef(
|
|
|
4288
4288
|
}
|
|
4289
4289
|
);
|
|
4290
4290
|
PageLayout.displayName = "PageLayout";
|
|
4291
|
-
var UBOCard = ({ ubos }) => {
|
|
4291
|
+
var UBOCard = ({ ubos, onUBOClick }) => {
|
|
4292
4292
|
const columns3 = [
|
|
4293
4293
|
{
|
|
4294
4294
|
key: "name",
|
|
@@ -4296,10 +4296,10 @@ var UBOCard = ({ ubos }) => {
|
|
|
4296
4296
|
sortable: true,
|
|
4297
4297
|
width: "40%",
|
|
4298
4298
|
render: (value, row) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
4299
|
-
|
|
4299
|
+
"button",
|
|
4300
4300
|
{
|
|
4301
|
-
|
|
4302
|
-
className: "text-primary hover:underline font-medium",
|
|
4301
|
+
onClick: () => onUBOClick(row.customerId),
|
|
4302
|
+
className: "text-primary hover:underline font-medium text-left",
|
|
4303
4303
|
children: value
|
|
4304
4304
|
}
|
|
4305
4305
|
)
|
|
@@ -4660,7 +4660,8 @@ var BusinessDetailView = ({
|
|
|
4660
4660
|
onToggleProfileEdit,
|
|
4661
4661
|
onNavigateToAccounts,
|
|
4662
4662
|
onNavigateToCounterparty,
|
|
4663
|
-
onAddAccount
|
|
4663
|
+
onAddAccount,
|
|
4664
|
+
onUBOClick
|
|
4664
4665
|
}) => {
|
|
4665
4666
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4666
4667
|
PageLayout,
|
|
@@ -4713,7 +4714,7 @@ var BusinessDetailView = ({
|
|
|
4713
4714
|
onDataChange: onProfileDataChange
|
|
4714
4715
|
}
|
|
4715
4716
|
),
|
|
4716
|
-
/* @__PURE__ */ jsxRuntime.jsx(UBOCard, { ubos: businessUBOs }),
|
|
4717
|
+
/* @__PURE__ */ jsxRuntime.jsx(UBOCard, { ubos: businessUBOs, onUBOClick }),
|
|
4717
4718
|
/* @__PURE__ */ jsxRuntime.jsxs(Card, { children: [
|
|
4718
4719
|
/* @__PURE__ */ jsxRuntime.jsxs(CardHeader, { className: "flex flex-row items-center justify-between space-y-0 pb-4", children: [
|
|
4719
4720
|
/* @__PURE__ */ jsxRuntime.jsx(CardTitle, { children: "External Accounts" }),
|
|
@@ -10422,6 +10423,9 @@ var BusinessDetail = () => {
|
|
|
10422
10423
|
const handleAddAccount = () => {
|
|
10423
10424
|
console.log("Add account clicked");
|
|
10424
10425
|
};
|
|
10426
|
+
const handleUBOClick = (customerId) => {
|
|
10427
|
+
navigate(`/customer/${customerId}`);
|
|
10428
|
+
};
|
|
10425
10429
|
if (!business) {
|
|
10426
10430
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "container mx-auto px-4 py-8", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-center", children: [
|
|
10427
10431
|
/* @__PURE__ */ jsxRuntime.jsx("h1", { className: "text-2xl font-bold mb-2", children: "Business Not Found" }),
|
|
@@ -10444,7 +10448,8 @@ var BusinessDetail = () => {
|
|
|
10444
10448
|
onToggleProfileEdit: handleToggleProfileEdit,
|
|
10445
10449
|
onNavigateToAccounts: handleNavigateToAccounts,
|
|
10446
10450
|
onNavigateToCounterparty: handleNavigateToCounterparty,
|
|
10447
|
-
onAddAccount: handleAddAccount
|
|
10451
|
+
onAddAccount: handleAddAccount,
|
|
10452
|
+
onUBOClick: handleUBOClick
|
|
10448
10453
|
}
|
|
10449
10454
|
);
|
|
10450
10455
|
};
|