@telia/teddy 0.1.20 → 0.1.21
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.
|
@@ -999,7 +999,10 @@ const Desktop = React.forwardRef(() => {
|
|
|
999
999
|
{
|
|
1000
1000
|
asChild: true,
|
|
1001
1001
|
active: currentLocation === subLink.link,
|
|
1002
|
-
onClick: () =>
|
|
1002
|
+
onClick: () => {
|
|
1003
|
+
setSpecifiedLink(subLink.name);
|
|
1004
|
+
setSelectedMenuItem(subLink.name, true);
|
|
1005
|
+
},
|
|
1003
1006
|
children: /* @__PURE__ */ jsxRuntime.jsx(components_button_button.Button, { children: subLink.name })
|
|
1004
1007
|
}
|
|
1005
1008
|
) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -1007,7 +1010,10 @@ const Desktop = React.forwardRef(() => {
|
|
|
1007
1010
|
{
|
|
1008
1011
|
asChild: true,
|
|
1009
1012
|
active: currentLocation === subLink.link,
|
|
1010
|
-
onClick: () =>
|
|
1013
|
+
onClick: () => {
|
|
1014
|
+
setSpecifiedLink(subLink.name);
|
|
1015
|
+
setSelectedMenuItem(subLink.name);
|
|
1016
|
+
},
|
|
1011
1017
|
children: subLink.appKey === rootContext.appKey || rootContext.appKey === "storybook" ? /* @__PURE__ */ jsxRuntime.jsx(Link2, { href: subLink.link, children: subLink.name }) : /* @__PURE__ */ jsxRuntime.jsx("a", { href: subLink.link, children: subLink.name })
|
|
1012
1018
|
}
|
|
1013
1019
|
),
|
|
@@ -978,7 +978,10 @@ const Desktop = React__default.forwardRef(() => {
|
|
|
978
978
|
{
|
|
979
979
|
asChild: true,
|
|
980
980
|
active: currentLocation === subLink.link,
|
|
981
|
-
onClick: () =>
|
|
981
|
+
onClick: () => {
|
|
982
|
+
setSpecifiedLink(subLink.name);
|
|
983
|
+
setSelectedMenuItem(subLink.name, true);
|
|
984
|
+
},
|
|
982
985
|
children: /* @__PURE__ */ jsx(Button, { children: subLink.name })
|
|
983
986
|
}
|
|
984
987
|
) : /* @__PURE__ */ jsx(
|
|
@@ -986,7 +989,10 @@ const Desktop = React__default.forwardRef(() => {
|
|
|
986
989
|
{
|
|
987
990
|
asChild: true,
|
|
988
991
|
active: currentLocation === subLink.link,
|
|
989
|
-
onClick: () =>
|
|
992
|
+
onClick: () => {
|
|
993
|
+
setSpecifiedLink(subLink.name);
|
|
994
|
+
setSelectedMenuItem(subLink.name);
|
|
995
|
+
},
|
|
990
996
|
children: subLink.appKey === rootContext.appKey || rootContext.appKey === "storybook" ? /* @__PURE__ */ jsx(Link2, { href: subLink.link, children: subLink.name }) : /* @__PURE__ */ jsx("a", { href: subLink.link, children: subLink.name })
|
|
991
997
|
}
|
|
992
998
|
),
|