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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "willba-component-library",
3
- "version": "0.1.73",
3
+ "version": "0.1.75",
4
4
  "description": "A stroybook 6 with TypeScript demo",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/index.esm.js",
@@ -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
- console.log(defaultTab)
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}${