basefn 1.1.2 → 1.1.4
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/package.json
CHANGED
|
@@ -74,13 +74,14 @@ let make = (
|
|
|
74
74
|
let itemClass =
|
|
75
75
|
"basefn-sidebar__item" ++ (item.active ? " basefn-sidebar__item--active" : "")
|
|
76
76
|
|
|
77
|
-
|
|
78
|
-
{
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
77
|
+
Router.link(
|
|
78
|
+
~to={item.url},
|
|
79
|
+
~attrs=[Component.attr("class", itemClass)],
|
|
80
|
+
~children=[
|
|
81
|
+
<div class="basefn-sidebar__item-text"> {Component.text(item.label)} </div>,
|
|
82
|
+
],
|
|
83
|
+
(),
|
|
84
|
+
)
|
|
84
85
|
})
|
|
85
86
|
->Component.fragment}
|
|
86
87
|
</div>
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
import * as Xote from "xote/src/Xote.res.mjs";
|
|
4
4
|
import * as Xote__JSX from "xote/src/Xote__JSX.res.mjs";
|
|
5
5
|
import * as Basefn__Dom from "../Basefn__Dom.res.mjs";
|
|
6
|
-
import * as Xote__Router from "xote/src/Xote__Router.res.mjs";
|
|
7
6
|
|
|
8
7
|
import './Basefn__Sidebar.css'
|
|
9
8
|
;
|
|
@@ -70,21 +69,10 @@ function Basefn__Sidebar(props) {
|
|
|
70
69
|
let itemClass = "basefn-sidebar__item" + (
|
|
71
70
|
item.active ? " basefn-sidebar__item--active" : ""
|
|
72
71
|
);
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
children: Xote__JSX.array([
|
|
78
|
-
icon !== undefined ? Xote__JSX.Elements.jsx("div", {
|
|
79
|
-
class: "basefn-sidebar__item-icon",
|
|
80
|
-
children: Xote.Component.text(icon)
|
|
81
|
-
}) : Xote__JSX.jsx(Xote__JSX.jsxFragment, {}),
|
|
82
|
-
Xote__JSX.Elements.jsx("div", {
|
|
83
|
-
class: "basefn-sidebar__item-text",
|
|
84
|
-
children: Xote.Component.text(item.label)
|
|
85
|
-
})
|
|
86
|
-
])
|
|
87
|
-
}, index.toString(), undefined);
|
|
72
|
+
return Xote.Router.link(item.url, [Xote.Component.attr("class", itemClass)], [Xote__JSX.Elements.jsx("div", {
|
|
73
|
+
class: "basefn-sidebar__item-text",
|
|
74
|
+
children: Xote.Component.text(item.label)
|
|
75
|
+
})], undefined);
|
|
88
76
|
}))
|
|
89
77
|
])
|
|
90
78
|
});
|