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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "willba-component-library",
3
- "version": "0.2.81",
3
+ "version": "0.2.83",
4
4
  "description": "A custom UI component library",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/index.esm.js",
@@ -128,7 +128,7 @@ export default function FilterBar({
128
128
  active={!!parsedDates}
129
129
  />
130
130
 
131
- {selectedPath === Pages.ROOMS && (
131
+ {selectedPath !== Pages.EVENTS && (
132
132
  <>
133
133
  <Divider />
134
134
 
@@ -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 = {
@@ -30,6 +30,7 @@
30
30
  font-weight: 400;
31
31
  opacity: 0.5;
32
32
  white-space: nowrap;
33
+ min-height: 19px;
33
34
  }
34
35
 
35
36
  .will-filter-bar-select-button .select-button-description span {
@@ -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)) {