@colisweb/rescript-toolkit 2.50.2 → 2.50.3
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
|
@@ -45,8 +45,8 @@ module Make = (Config: RouterConfig) => {
|
|
|
45
45
|
}, [setCurrentRoute])
|
|
46
46
|
|
|
47
47
|
let contextValue: contextState = {
|
|
48
|
-
previousRoute
|
|
49
|
-
currentRoute
|
|
48
|
+
previousRoute,
|
|
49
|
+
currentRoute,
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
<RouterContextProvider value={contextValue}>
|
|
@@ -87,7 +87,7 @@ module Make = (Config: RouterConfig) => {
|
|
|
87
87
|
<a
|
|
88
88
|
href={route->Config.toString}
|
|
89
89
|
target={isExternal ? "_blank" : ""}
|
|
90
|
-
className=j`$className $activeClassName`
|
|
90
|
+
className={j`$className $activeClassName`}
|
|
91
91
|
onClick={event =>
|
|
92
92
|
if (
|
|
93
93
|
!(event->ReactEvent.Mouse.defaultPrevented) &&
|
|
@@ -276,8 +276,8 @@ module Make = (Config: RouterConfig) => {
|
|
|
276
276
|
</button>
|
|
277
277
|
<div
|
|
278
278
|
className={cx([
|
|
279
|
-
"transition ease-linear duration-300
|
|
280
|
-
isOpen ? "h-auto" : "h-0",
|
|
279
|
+
"transition ease-linear duration-300",
|
|
280
|
+
isOpen ? "h-auto" : "h-0 overflow-hidden",
|
|
281
281
|
])}>
|
|
282
282
|
{links
|
|
283
283
|
->Array.mapWithIndex((i, link) =>
|