willba-component-library 0.2.81 → 0.2.83
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/components/FilterBar/FilterBarTypes.d.ts +2 -2
- package/lib/index.d.ts +0 -1
- package/lib/index.esm.js +4 -3
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +4 -3
- package/lib/index.js.map +1 -1
- package/lib/index.umd.js +4 -3
- package/lib/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/FilterBar/FilterBar.tsx +1 -1
- package/src/components/FilterBar/FilterBarTypes.ts +1 -1
- package/src/components/FilterBar/components/buttons/select-button/SelectButton.css +1 -0
- package/src/components/FilterBar/hooks/useFilterBar.tsx +1 -1
package/package.json
CHANGED
|
@@ -10,7 +10,6 @@ export type FilterBarProps = {
|
|
|
10
10
|
fullWidth?: boolean
|
|
11
11
|
disableCalendarDates?: DisableCalendarDates
|
|
12
12
|
mode?: string
|
|
13
|
-
defaultTab?: string
|
|
14
13
|
tabs?: Tab[]
|
|
15
14
|
outerLoading?: boolean
|
|
16
15
|
}
|
|
@@ -46,6 +45,7 @@ export type Filters = { [key: string]: string }
|
|
|
46
45
|
export enum Pages {
|
|
47
46
|
ROOMS = '/rooms',
|
|
48
47
|
EVENTS = '/events',
|
|
48
|
+
SALES = '/sales',
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
type Translations = {
|
|
@@ -75,7 +75,7 @@ export const useFilterBar = ({
|
|
|
75
75
|
tabs?.length === 1 ? tabs[0] : tabs?.find((tab) => tab.default)
|
|
76
76
|
|
|
77
77
|
const findMatchingPath = () => {
|
|
78
|
-
const paths = [Pages.EVENTS, Pages.ROOMS]
|
|
78
|
+
const paths = [Pages.EVENTS, Pages.ROOMS, Pages.SALES]
|
|
79
79
|
|
|
80
80
|
for (const path of paths) {
|
|
81
81
|
if (window.location.pathname.includes(path)) {
|