willba-component-library 0.1.73 → 0.1.75
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/lib/index.esm.js +0 -1
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +0 -1
- package/lib/index.js.map +1 -1
- package/lib/index.umd.js +0 -1
- package/lib/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/FilterBar/FilterBar.stories.tsx +1 -0
- package/src/components/FilterBar/hooks/useFilterBar.tsx +2 -1
package/package.json
CHANGED
|
@@ -49,6 +49,7 @@ export const Primary: Story = {
|
|
|
49
49
|
currentViewApply: 'roomFilters',
|
|
50
50
|
mode: 'dark',
|
|
51
51
|
defaultTab: '/rooms',
|
|
52
|
+
//tabs: ['/rooms', '/events'], -> TODO - show only available tabs -> also related to "currentViewApply"
|
|
52
53
|
},
|
|
53
54
|
render: (args) => (
|
|
54
55
|
<div style={{ background: 'white', padding: '30px', height: '100vh' }}>
|
|
@@ -71,7 +71,7 @@ export const useFilterBar = ({
|
|
|
71
71
|
useEffect(() => {
|
|
72
72
|
// Handle default selected tab
|
|
73
73
|
if (typeof window === 'undefined') return
|
|
74
|
-
|
|
74
|
+
|
|
75
75
|
const currentPath =
|
|
76
76
|
defaultTab === Pages.EVENTS ||
|
|
77
77
|
window.location.pathname.includes(Pages.EVENTS)
|
|
@@ -151,6 +151,7 @@ export const useFilterBar = ({
|
|
|
151
151
|
}
|
|
152
152
|
|
|
153
153
|
handleSelectedFilter(false)
|
|
154
|
+
|
|
154
155
|
return onSubmit && selectedPath === Pages.ROOMS
|
|
155
156
|
? onSubmit(newParams)
|
|
156
157
|
: (window.location.href = `${redirectUrl}/${selectedPath}${
|