@abcagency/hc-ui-components 1.3.57 → 1.3.59
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/dist/apis/hcApi.js +85 -85
- package/dist/apis/hcApi.js.map +1 -1
- package/dist/clientToken.js.map +1 -1
- package/dist/components/containers/accordions/filter-container.js.map +1 -1
- package/dist/components/containers/accordions/filter-item-container.js +4 -2
- package/dist/components/containers/accordions/filter-item-container.js.map +1 -1
- package/dist/components/containers/accordions/map-accordion-item-container.js.map +1 -1
- package/dist/components/containers/filter/filter-item-container.js +4 -2
- package/dist/components/containers/filter/filter-item-container.js.map +1 -1
- package/dist/components/containers/jobListing/listing-details-container.js.map +1 -1
- package/dist/components/containers/list/item-list-container.js +21 -21
- package/dist/components/containers/list/list-item/list-item-container.js.map +1 -1
- package/dist/components/containers/maps/map-container.js.map +1 -1
- package/dist/components/modules/accordions/MapAccordionItem.js.map +1 -1
- package/dist/components/modules/accordions/default.js.map +1 -1
- package/dist/components/modules/buttons/commute-pill.js.map +1 -1
- package/dist/components/modules/buttons/default.js.map +1 -1
- package/dist/components/modules/buttons/items-pill.js.map +1 -1
- package/dist/components/modules/buttons/pill-wrapper.js.map +1 -1
- package/dist/components/modules/buttons/show-all-button.js.map +1 -1
- package/dist/components/modules/cards/default.js.map +1 -1
- package/dist/components/modules/cards/filter.js.map +1 -1
- package/dist/components/modules/filter/item.js.map +1 -1
- package/dist/components/modules/filter/sort.js.map +1 -1
- package/dist/components/modules/grid.js.map +1 -1
- package/dist/components/modules/icon.js.map +1 -1
- package/dist/components/modules/list/header.js.map +1 -1
- package/dist/components/modules/list/item-list.js +40 -40
- package/dist/components/modules/maps/info-window-card.js.map +1 -1
- package/dist/components/modules/maps/map.js.map +1 -1
- package/dist/components/modules/maps/place-marker.js.map +1 -1
- package/dist/components/modules/maps/tabs.js.map +1 -1
- package/dist/constants/placeTypes.js.map +1 -1
- package/dist/contexts/mapContext.js +83 -83
- package/dist/contexts/mapListContext.js +190 -190
- package/dist/contexts/trackEventContext.js.map +1 -1
- package/dist/hooks/useList.js.map +1 -1
- package/dist/services/configService.js +9 -9
- package/dist/services/googlePlacesNearbyService.js +32 -32
- package/dist/services/googlePlacesNearbyService.js.map +1 -1
- package/dist/services/listingAggregatorService.js +34 -34
- package/dist/services/listingAggregatorService.js.map +1 -1
- package/dist/services/listingEntityService.js +9 -9
- package/dist/services/listingService.js +24 -24
- package/dist/services/recruiterService.js +10 -10
- package/dist/types/apis/hcApi.d.ts +5 -5
- package/dist/types/clientToken.d.ts +2 -2
- package/dist/types/components/containers/accordions/map-accordion-item-container.d.ts +12 -12
- package/dist/types/components/containers/jobListing/listing-details-container.d.ts +6 -6
- package/dist/types/components/containers/list/item-list-container.d.ts +9 -9
- package/dist/types/components/containers/list/list-item/list-item-container.d.ts +14 -14
- package/dist/types/components/modules/accordions/MapAccordionItem.d.ts +10 -10
- package/dist/types/components/modules/accordions/default.d.ts +19 -19
- package/dist/types/components/modules/buttons/button-group-apply.d.ts +24 -24
- package/dist/types/components/modules/buttons/commute-pill.d.ts +5 -5
- package/dist/types/components/modules/buttons/default.d.ts +48 -48
- package/dist/types/components/modules/buttons/pill-wrapper.d.ts +3 -3
- package/dist/types/components/modules/dialogs/apply-dialog.d.ts +8 -8
- package/dist/types/components/modules/filter/sort.d.ts +8 -8
- package/dist/types/components/modules/grid.d.ts +8 -8
- package/dist/types/components/modules/icon.d.ts +10 -10
- package/dist/types/components/modules/jobListing/listing-details.d.ts +18 -18
- package/dist/types/components/modules/list/field-mapper.d.ts +10 -10
- package/dist/types/components/modules/list/header-item.d.ts +11 -11
- package/dist/types/components/modules/list/header.d.ts +12 -12
- package/dist/types/components/modules/list/item-expand-card/index.d.ts +7 -7
- package/dist/types/components/modules/list/item-expand-card/recruiter-contact-nav.d.ts +17 -17
- package/dist/types/components/modules/list/item-expand-card/recruiter-details.d.ts +21 -21
- package/dist/types/components/modules/list/item-expand-card/recruiter-headshot.d.ts +8 -8
- package/dist/types/components/modules/list/item-list.d.ts +20 -20
- package/dist/types/components/modules/list/list-item/list-item.d.ts +3 -3
- package/dist/types/constants/eventTypes.d.ts +14 -14
- package/dist/types/contexts/mapContext.d.ts +29 -29
- package/dist/types/contexts/mapListContext.d.ts +61 -61
- package/dist/types/contexts/trackEventContext.d.ts +6 -6
- package/dist/types/enums/SectionType.d.ts +9 -9
- package/dist/types/hooks/useList.d.ts +13 -13
- package/dist/types/services/configService.d.ts +6 -6
- package/dist/types/services/googlePlacesNearbyService.d.ts +5 -5
- package/dist/types/services/listingAggregatorService.d.ts +12 -12
- package/dist/types/services/listingEntityService.d.ts +6 -6
- package/dist/types/services/listingService.d.ts +9 -9
- package/dist/types/services/recruiterService.d.ts +6 -6
- package/dist/types/types/Address.d.ts +7 -7
- package/dist/types/types/ContentSection.d.ts +8 -8
- package/dist/types/types/GetListingParams.d.ts +8 -8
- package/dist/types/types/LatLng.d.ts +4 -4
- package/dist/types/types/ListingEntity.d.ts +10 -10
- package/dist/types/types/ListingFields.d.ts +25 -25
- package/dist/types/types/Listings.d.ts +31 -31
- package/dist/types/types/Recruiter.d.ts +9 -9
- package/dist/types/types/SimilarListing.d.ts +24 -24
- package/dist/types/types/config/Colors.d.ts +8 -8
- package/dist/types/types/config/MapConfig.d.ts +30 -30
- package/dist/types/types/config/PointsOfInterestConfig.d.ts +13 -13
- package/dist/types/types/config/SearchConfig.d.ts +4 -4
- package/dist/types/util/filterUtil.d.ts +28 -28
- package/dist/types/util/loading.d.ts +3 -3
- package/dist/types/util/localStorageUtil.d.ts +3 -3
- package/dist/types/util/mapUtil.d.ts +16 -16
- package/dist/types/util/sortUtil.d.ts +1 -1
- package/dist/types/util/stringUtils.d.ts +1 -1
- package/dist/types/util/urlFilterUtil.d.ts +8 -8
- package/dist/util/filterUtil.js +2 -2
- package/dist/util/filterUtil.js.map +1 -1
- package/dist/util/loading.js.map +1 -1
- package/dist/util/localStorageUtil.js +37 -37
- package/dist/util/localStorageUtil.js.map +1 -1
- package/dist/util/sortUtil.js.map +1 -1
- package/dist/util/stringUtils.js.map +1 -1
- package/dist/util/urlFilterUtil.js.map +1 -1
- package/package.json +1 -1
- package/src/apis/hcApi.ts +109 -109
- package/src/clientToken.js +9 -9
- package/src/components/containers/accordions/filter-container.js +48 -48
- package/src/components/containers/accordions/filter-item-container.js +2 -0
- package/src/components/containers/accordions/map-accordion-item-container.js +70 -70
- package/src/components/containers/filter/filter-item-container.js +2 -1
- package/src/components/containers/jobListing/listing-details-container.js +40 -40
- package/src/components/containers/list/list-item/list-item-container.js +43 -43
- package/src/components/containers/maps/map-container.js +249 -249
- package/src/components/modules/accordions/MapAccordionItem.js +30 -30
- package/src/components/modules/accordions/default.js +171 -171
- package/src/components/modules/buttons/commute-pill.js +22 -22
- package/src/components/modules/buttons/default.js +194 -194
- package/src/components/modules/buttons/items-pill.js +35 -35
- package/src/components/modules/buttons/pill-wrapper.js +27 -27
- package/src/components/modules/buttons/show-all-button.js +19 -19
- package/src/components/modules/cards/default.js +167 -167
- package/src/components/modules/cards/filter.js +56 -56
- package/src/components/modules/filter/item.js +69 -69
- package/src/components/modules/filter/sort.js +83 -83
- package/src/components/modules/grid.js +54 -54
- package/src/components/modules/icon.js +33 -33
- package/src/components/modules/list/header.js +51 -51
- package/src/components/modules/list/item-expand-card/recruiter-contact-nav.js +50 -50
- package/src/components/modules/list/item-expand-card/recruiter-details.js +68 -68
- package/src/components/modules/list/item-expand-card/recruiter-headshot.js +22 -22
- package/src/components/modules/maps/info-window-card.js +17 -17
- package/src/components/modules/maps/map.js +64 -64
- package/src/components/modules/maps/place-marker.js +41 -41
- package/src/components/modules/maps/tabs.js +81 -81
- package/src/constants/placeTypes.js +8 -8
- package/src/contexts/trackEventContext.js +14 -14
- package/src/enums/SectionType.ts +9 -9
- package/src/hooks/useList.js +89 -89
- package/src/index.js +3 -3
- package/src/services/googlePlacesNearbyService.ts +42 -42
- package/src/services/listingAggregatorService.ts +76 -76
- package/src/util/arrayUtil.js +3 -3
- package/src/util/fieldMapper.js +22 -22
- package/src/util/filterUtil.js +311 -310
- package/src/util/loading.js +17 -17
- package/src/util/localStorageUtil.ts +34 -34
- package/src/util/sortUtil.js +32 -32
- package/src/util/stringUtils.js +6 -6
- package/src/util/urlFilterUtil.js +85 -85
- package/dist/types/contexts/themeContext.d.ts +0 -11
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { useMapList } from '~/contexts/mapListContext';
|
|
3
|
-
import AccordionFilters from '~/components/modules/accordions/filters';
|
|
4
|
-
import AccordionFilterItem from '~/components/containers/accordions/filter-item-container';
|
|
5
|
-
|
|
6
|
-
const AccordionFiltersContainer = ({
|
|
7
|
-
className,
|
|
8
|
-
defaultValue,
|
|
9
|
-
setDefaultValue,
|
|
10
|
-
setLocation,
|
|
11
|
-
setSelectedListItem,
|
|
12
|
-
SubcategoryRequireCategory
|
|
13
|
-
}) => {
|
|
14
|
-
const { filterOptions, selectedFilters, setSelectedFilters, siteConfig } = useMapList();
|
|
15
|
-
|
|
16
|
-
const handleSetSelectedFilters = prevFilters => {
|
|
17
|
-
setSelectedFilters(prevFilters);
|
|
18
|
-
setLocation(null);
|
|
19
|
-
setSelectedListItem(null);
|
|
20
|
-
};
|
|
21
|
-
return (
|
|
22
|
-
<AccordionFilters
|
|
23
|
-
className={className}
|
|
24
|
-
defaultValue={defaultValue}
|
|
25
|
-
filterOptions={filterOptions}
|
|
26
|
-
>
|
|
27
|
-
{filterOptions?.filters?.map(filter => {
|
|
28
|
-
if(filter.id === 'category' && SubcategoryRequireCategory === true && (!selectedFilters.categoryClass || Object.keys(selectedFilters.categoryClass).length < 1)){
|
|
29
|
-
return;
|
|
30
|
-
} else if (filter.id === 'category' && SubcategoryRequireCategory === true && filter.items.length > 0) {
|
|
31
|
-
filter.items = filter.items.filter(item => item.count > 0);
|
|
32
|
-
}
|
|
33
|
-
return (<AccordionFilterItem
|
|
34
|
-
key={filter.id}
|
|
35
|
-
filter={filter}
|
|
36
|
-
externalLinksInFilters={siteConfig.externalLinksInFilters}
|
|
37
|
-
setDefaultValue={setDefaultValue}
|
|
38
|
-
selectedFilters={selectedFilters}
|
|
39
|
-
setSelectedFilters={handleSetSelectedFilters}
|
|
40
|
-
subcategoryRequireCategory={siteConfig.subcategoryRequireCategory}
|
|
41
|
-
/>);
|
|
42
|
-
}
|
|
43
|
-
)}
|
|
44
|
-
</AccordionFilters>
|
|
45
|
-
);
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
export default AccordionFiltersContainer;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { useMapList } from '~/contexts/mapListContext';
|
|
3
|
+
import AccordionFilters from '~/components/modules/accordions/filters';
|
|
4
|
+
import AccordionFilterItem from '~/components/containers/accordions/filter-item-container';
|
|
5
|
+
|
|
6
|
+
const AccordionFiltersContainer = ({
|
|
7
|
+
className,
|
|
8
|
+
defaultValue,
|
|
9
|
+
setDefaultValue,
|
|
10
|
+
setLocation,
|
|
11
|
+
setSelectedListItem,
|
|
12
|
+
SubcategoryRequireCategory
|
|
13
|
+
}) => {
|
|
14
|
+
const { filterOptions, selectedFilters, setSelectedFilters, siteConfig } = useMapList();
|
|
15
|
+
|
|
16
|
+
const handleSetSelectedFilters = prevFilters => {
|
|
17
|
+
setSelectedFilters(prevFilters);
|
|
18
|
+
setLocation(null);
|
|
19
|
+
setSelectedListItem(null);
|
|
20
|
+
};
|
|
21
|
+
return (
|
|
22
|
+
<AccordionFilters
|
|
23
|
+
className={className}
|
|
24
|
+
defaultValue={defaultValue}
|
|
25
|
+
filterOptions={filterOptions}
|
|
26
|
+
>
|
|
27
|
+
{filterOptions?.filters?.map(filter => {
|
|
28
|
+
if(filter.id === 'category' && SubcategoryRequireCategory === true && (!selectedFilters.categoryClass || Object.keys(selectedFilters.categoryClass).length < 1)){
|
|
29
|
+
return;
|
|
30
|
+
} else if (filter.id === 'category' && SubcategoryRequireCategory === true && filter.items.length > 0) {
|
|
31
|
+
filter.items = filter.items.filter(item => item.count > 0);
|
|
32
|
+
}
|
|
33
|
+
return (<AccordionFilterItem
|
|
34
|
+
key={filter.id}
|
|
35
|
+
filter={filter}
|
|
36
|
+
externalLinksInFilters={siteConfig.externalLinksInFilters}
|
|
37
|
+
setDefaultValue={setDefaultValue}
|
|
38
|
+
selectedFilters={selectedFilters}
|
|
39
|
+
setSelectedFilters={handleSetSelectedFilters}
|
|
40
|
+
subcategoryRequireCategory={siteConfig.subcategoryRequireCategory}
|
|
41
|
+
/>);
|
|
42
|
+
}
|
|
43
|
+
)}
|
|
44
|
+
</AccordionFilters>
|
|
45
|
+
);
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
export default AccordionFiltersContainer;
|
|
@@ -54,6 +54,7 @@ const FilterItemContainer = ({
|
|
|
54
54
|
field={filter.id}
|
|
55
55
|
selectedFilters={selectedFilters}
|
|
56
56
|
setSelectedFilters={setSelectedFilters}
|
|
57
|
+
subcategoryRequireCategory={subcategoryRequireCategory}
|
|
57
58
|
/>
|
|
58
59
|
))}
|
|
59
60
|
{externalLinks && externalLinks.map(link => (
|
|
@@ -63,6 +64,7 @@ const FilterItemContainer = ({
|
|
|
63
64
|
isExternalLink={true}
|
|
64
65
|
externalLinkUrl={link.externalLinkUrl}
|
|
65
66
|
field={filter.id}
|
|
67
|
+
subcategoryRequireCategory={subcategoryRequireCategory}
|
|
66
68
|
/>
|
|
67
69
|
))}
|
|
68
70
|
</>
|
|
@@ -1,70 +1,70 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { useMap } from '~/contexts/mapContext';
|
|
3
|
-
import { useMapList } from '~/contexts/mapListContext';
|
|
4
|
-
import { useTrackEvent } from '~/contexts/trackEventContext';
|
|
5
|
-
import { setStorageObject } from '~/util/localStorageUtil';
|
|
6
|
-
import MapAccordionItem from '~/components/modules/accordions/MapAccordionItem';
|
|
7
|
-
import ListItemContainer from '~/components/containers/list/list-item/list-item-container';
|
|
8
|
-
|
|
9
|
-
const MapAccordionItemContainer = ({
|
|
10
|
-
showMap,
|
|
11
|
-
item,
|
|
12
|
-
itemRefs,
|
|
13
|
-
fieldsShown,
|
|
14
|
-
itemExpandedContent,
|
|
15
|
-
specialFeatures,
|
|
16
|
-
isActive,
|
|
17
|
-
hasListItemSelected
|
|
18
|
-
}) => {
|
|
19
|
-
const { mapItems, recruiters } = useMapList();
|
|
20
|
-
const { selectItem } = useMap();
|
|
21
|
-
const { trackEvent, eventTypes } = useTrackEvent();
|
|
22
|
-
|
|
23
|
-
const setSelectedItemAndZoomMap = (item, isActive) => {
|
|
24
|
-
if (isActive) {
|
|
25
|
-
localStorage.removeItem("selectedListItem");
|
|
26
|
-
const location = mapItems.find(x => Object.prototype.hasOwnProperty.call(x.items, item.id)) || null;
|
|
27
|
-
selectItem(null, null, 9, { lat: 39.8283, lng: -98.5795 });
|
|
28
|
-
} else {
|
|
29
|
-
setStorageObject("selectedListItem", item);
|
|
30
|
-
const location = mapItems.find(x => Object.prototype.hasOwnProperty.call(x.items, item.id)) || null;
|
|
31
|
-
selectItem(item, location, 12, {
|
|
32
|
-
lat: location?.latitude,
|
|
33
|
-
lng: location?.longitude
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
const handleItemClick = item => {
|
|
39
|
-
trackEvent(eventTypes.JOB_LISTING_SELECTED, {
|
|
40
|
-
jobTitle: item.fields.position,
|
|
41
|
-
jobCategory: item.fields.category,
|
|
42
|
-
entityDisplayName: item?.mapDetails?.entityDisplayName
|
|
43
|
-
});
|
|
44
|
-
|
|
45
|
-
setSelectedItemAndZoomMap(item, isActive);
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
return (
|
|
49
|
-
<MapAccordionItem
|
|
50
|
-
item={item}
|
|
51
|
-
itemRefs={itemRefs}
|
|
52
|
-
itemExpandedContent={itemExpandedContent}
|
|
53
|
-
isActive={isActive}
|
|
54
|
-
recruiter={recruiters[item.recruiterId]}
|
|
55
|
-
>
|
|
56
|
-
<ListItemContainer
|
|
57
|
-
showMap={showMap}
|
|
58
|
-
item={item}
|
|
59
|
-
itemRefs={itemRefs}
|
|
60
|
-
fieldsShown={fieldsShown}
|
|
61
|
-
specialFeatures={specialFeatures}
|
|
62
|
-
isActive={isActive}
|
|
63
|
-
hasListItemSelected={hasListItemSelected}
|
|
64
|
-
onClick={() => handleItemClick(item)}
|
|
65
|
-
/>
|
|
66
|
-
</MapAccordionItem>
|
|
67
|
-
);
|
|
68
|
-
};
|
|
69
|
-
|
|
70
|
-
export default MapAccordionItemContainer;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { useMap } from '~/contexts/mapContext';
|
|
3
|
+
import { useMapList } from '~/contexts/mapListContext';
|
|
4
|
+
import { useTrackEvent } from '~/contexts/trackEventContext';
|
|
5
|
+
import { setStorageObject } from '~/util/localStorageUtil';
|
|
6
|
+
import MapAccordionItem from '~/components/modules/accordions/MapAccordionItem';
|
|
7
|
+
import ListItemContainer from '~/components/containers/list/list-item/list-item-container';
|
|
8
|
+
|
|
9
|
+
const MapAccordionItemContainer = ({
|
|
10
|
+
showMap,
|
|
11
|
+
item,
|
|
12
|
+
itemRefs,
|
|
13
|
+
fieldsShown,
|
|
14
|
+
itemExpandedContent,
|
|
15
|
+
specialFeatures,
|
|
16
|
+
isActive,
|
|
17
|
+
hasListItemSelected
|
|
18
|
+
}) => {
|
|
19
|
+
const { mapItems, recruiters } = useMapList();
|
|
20
|
+
const { selectItem } = useMap();
|
|
21
|
+
const { trackEvent, eventTypes } = useTrackEvent();
|
|
22
|
+
|
|
23
|
+
const setSelectedItemAndZoomMap = (item, isActive) => {
|
|
24
|
+
if (isActive) {
|
|
25
|
+
localStorage.removeItem("selectedListItem");
|
|
26
|
+
const location = mapItems.find(x => Object.prototype.hasOwnProperty.call(x.items, item.id)) || null;
|
|
27
|
+
selectItem(null, null, 9, { lat: 39.8283, lng: -98.5795 });
|
|
28
|
+
} else {
|
|
29
|
+
setStorageObject("selectedListItem", item);
|
|
30
|
+
const location = mapItems.find(x => Object.prototype.hasOwnProperty.call(x.items, item.id)) || null;
|
|
31
|
+
selectItem(item, location, 12, {
|
|
32
|
+
lat: location?.latitude,
|
|
33
|
+
lng: location?.longitude
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
const handleItemClick = item => {
|
|
39
|
+
trackEvent(eventTypes.JOB_LISTING_SELECTED, {
|
|
40
|
+
jobTitle: item.fields.position,
|
|
41
|
+
jobCategory: item.fields.category,
|
|
42
|
+
entityDisplayName: item?.mapDetails?.entityDisplayName
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
setSelectedItemAndZoomMap(item, isActive);
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
return (
|
|
49
|
+
<MapAccordionItem
|
|
50
|
+
item={item}
|
|
51
|
+
itemRefs={itemRefs}
|
|
52
|
+
itemExpandedContent={itemExpandedContent}
|
|
53
|
+
isActive={isActive}
|
|
54
|
+
recruiter={recruiters[item.recruiterId]}
|
|
55
|
+
>
|
|
56
|
+
<ListItemContainer
|
|
57
|
+
showMap={showMap}
|
|
58
|
+
item={item}
|
|
59
|
+
itemRefs={itemRefs}
|
|
60
|
+
fieldsShown={fieldsShown}
|
|
61
|
+
specialFeatures={specialFeatures}
|
|
62
|
+
isActive={isActive}
|
|
63
|
+
hasListItemSelected={hasListItemSelected}
|
|
64
|
+
onClick={() => handleItemClick(item)}
|
|
65
|
+
/>
|
|
66
|
+
</MapAccordionItem>
|
|
67
|
+
);
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
export default MapAccordionItemContainer;
|
|
@@ -14,6 +14,7 @@ const FilterItemContainer = ({
|
|
|
14
14
|
externalLinkUrl,
|
|
15
15
|
selectedFilters,
|
|
16
16
|
setSelectedFilters,
|
|
17
|
+
subcategoryRequireCategory = false,
|
|
17
18
|
...rest
|
|
18
19
|
}) => {
|
|
19
20
|
const { trackEvent, eventTypes } = useTrackEvent();
|
|
@@ -54,7 +55,7 @@ const FilterItemContainer = ({
|
|
|
54
55
|
delete updatedFilters[field];
|
|
55
56
|
}
|
|
56
57
|
|
|
57
|
-
if (field === 'categoryClass') {
|
|
58
|
+
if (field === 'categoryClass' && subcategoryRequireCategory) {
|
|
58
59
|
const activeCategoryClass = itemKey;
|
|
59
60
|
const categoriesToConsiderForRemoval = new Set(
|
|
60
61
|
filteredListings
|
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { useMap } from '~/contexts/mapContext';
|
|
3
|
-
import { useMapList } from '~/contexts/mapListContext';
|
|
4
|
-
import { useTrackEvent } from '~/contexts/trackEventContext';
|
|
5
|
-
import ListingDetails from '~/components/modules/jobListing/listing-details';
|
|
6
|
-
|
|
7
|
-
const ListingDetailsContainer = ({ item, recruiter }) => {
|
|
8
|
-
const { trackEvent, eventTypes } = useTrackEvent();
|
|
9
|
-
const { travelTime } = useMap();
|
|
10
|
-
const { siteConfig, navigateToDetails, navigateToEasyApply, Link, linkFormat } = useMapList();
|
|
11
|
-
|
|
12
|
-
const {
|
|
13
|
-
useDetailsPostMessage,
|
|
14
|
-
useApplyDialog,
|
|
15
|
-
internalApplyLink,
|
|
16
|
-
companyName,
|
|
17
|
-
jobsDomain
|
|
18
|
-
} = siteConfig;
|
|
19
|
-
|
|
20
|
-
return (
|
|
21
|
-
<ListingDetails
|
|
22
|
-
item={item}
|
|
23
|
-
recruiter={recruiter}
|
|
24
|
-
travelTime={travelTime}
|
|
25
|
-
useDetailsPostMessage={useDetailsPostMessage}
|
|
26
|
-
navigateToDetails={navigateToDetails}
|
|
27
|
-
navigateToEasyApply={navigateToEasyApply}
|
|
28
|
-
Link={Link}
|
|
29
|
-
linkFormat={linkFormat}
|
|
30
|
-
useApplyDialog={useApplyDialog}
|
|
31
|
-
internalApplyLink={internalApplyLink}
|
|
32
|
-
companyName={companyName}
|
|
33
|
-
jobsDomain={jobsDomain}
|
|
34
|
-
trackEvent={trackEvent}
|
|
35
|
-
eventTypes={eventTypes}
|
|
36
|
-
/>
|
|
37
|
-
);
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
export default ListingDetailsContainer;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { useMap } from '~/contexts/mapContext';
|
|
3
|
+
import { useMapList } from '~/contexts/mapListContext';
|
|
4
|
+
import { useTrackEvent } from '~/contexts/trackEventContext';
|
|
5
|
+
import ListingDetails from '~/components/modules/jobListing/listing-details';
|
|
6
|
+
|
|
7
|
+
const ListingDetailsContainer = ({ item, recruiter }) => {
|
|
8
|
+
const { trackEvent, eventTypes } = useTrackEvent();
|
|
9
|
+
const { travelTime } = useMap();
|
|
10
|
+
const { siteConfig, navigateToDetails, navigateToEasyApply, Link, linkFormat } = useMapList();
|
|
11
|
+
|
|
12
|
+
const {
|
|
13
|
+
useDetailsPostMessage,
|
|
14
|
+
useApplyDialog,
|
|
15
|
+
internalApplyLink,
|
|
16
|
+
companyName,
|
|
17
|
+
jobsDomain
|
|
18
|
+
} = siteConfig;
|
|
19
|
+
|
|
20
|
+
return (
|
|
21
|
+
<ListingDetails
|
|
22
|
+
item={item}
|
|
23
|
+
recruiter={recruiter}
|
|
24
|
+
travelTime={travelTime}
|
|
25
|
+
useDetailsPostMessage={useDetailsPostMessage}
|
|
26
|
+
navigateToDetails={navigateToDetails}
|
|
27
|
+
navigateToEasyApply={navigateToEasyApply}
|
|
28
|
+
Link={Link}
|
|
29
|
+
linkFormat={linkFormat}
|
|
30
|
+
useApplyDialog={useApplyDialog}
|
|
31
|
+
internalApplyLink={internalApplyLink}
|
|
32
|
+
companyName={companyName}
|
|
33
|
+
jobsDomain={jobsDomain}
|
|
34
|
+
trackEvent={trackEvent}
|
|
35
|
+
eventTypes={eventTypes}
|
|
36
|
+
/>
|
|
37
|
+
);
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
export default ListingDetailsContainer;
|
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
import React, { useState } from 'react';
|
|
2
|
-
import { useMapList } from '~/contexts/mapListContext';
|
|
3
|
-
import { useTrackEvent } from '~/contexts/trackEventContext';
|
|
4
|
-
import ListItem from '~/components/modules/list/list-item/list-item';
|
|
5
|
-
|
|
6
|
-
const ListItemContainer = ({
|
|
7
|
-
isActive,
|
|
8
|
-
showMap,
|
|
9
|
-
item,
|
|
10
|
-
itemRefs,
|
|
11
|
-
fieldsShown,
|
|
12
|
-
specialFeatures,
|
|
13
|
-
className,
|
|
14
|
-
bodyClassName,
|
|
15
|
-
onItemSelected,
|
|
16
|
-
...props
|
|
17
|
-
}) => {
|
|
18
|
-
const { siteConfig, favorites, handleSettingFavorites, setMobileTab } = useMapList();
|
|
19
|
-
const { trackEvent, eventTypes } = useTrackEvent();
|
|
20
|
-
|
|
21
|
-
return (
|
|
22
|
-
<ListItem
|
|
23
|
-
isActive={isActive}
|
|
24
|
-
showMap={showMap}
|
|
25
|
-
item={item}
|
|
26
|
-
itemRefs={itemRefs}
|
|
27
|
-
fieldsShown={fieldsShown}
|
|
28
|
-
specialFeatures={specialFeatures}
|
|
29
|
-
className={isActive ? "!hc-border-secondary hc-border hc-border-b-0" : "hc-opacity-85"}
|
|
30
|
-
bodyClassName={bodyClassName}
|
|
31
|
-
onItemSelected={onItemSelected}
|
|
32
|
-
setMobileTab={setMobileTab}
|
|
33
|
-
siteConfig={siteConfig}
|
|
34
|
-
trackEvent={trackEvent}
|
|
35
|
-
eventTypes={eventTypes}
|
|
36
|
-
favorites={favorites}
|
|
37
|
-
handleSettingFavorites={handleSettingFavorites}
|
|
38
|
-
{...props}
|
|
39
|
-
/>
|
|
40
|
-
);
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
export default ListItemContainer;
|
|
1
|
+
import React, { useState } from 'react';
|
|
2
|
+
import { useMapList } from '~/contexts/mapListContext';
|
|
3
|
+
import { useTrackEvent } from '~/contexts/trackEventContext';
|
|
4
|
+
import ListItem from '~/components/modules/list/list-item/list-item';
|
|
5
|
+
|
|
6
|
+
const ListItemContainer = ({
|
|
7
|
+
isActive,
|
|
8
|
+
showMap,
|
|
9
|
+
item,
|
|
10
|
+
itemRefs,
|
|
11
|
+
fieldsShown,
|
|
12
|
+
specialFeatures,
|
|
13
|
+
className,
|
|
14
|
+
bodyClassName,
|
|
15
|
+
onItemSelected,
|
|
16
|
+
...props
|
|
17
|
+
}) => {
|
|
18
|
+
const { siteConfig, favorites, handleSettingFavorites, setMobileTab } = useMapList();
|
|
19
|
+
const { trackEvent, eventTypes } = useTrackEvent();
|
|
20
|
+
|
|
21
|
+
return (
|
|
22
|
+
<ListItem
|
|
23
|
+
isActive={isActive}
|
|
24
|
+
showMap={showMap}
|
|
25
|
+
item={item}
|
|
26
|
+
itemRefs={itemRefs}
|
|
27
|
+
fieldsShown={fieldsShown}
|
|
28
|
+
specialFeatures={specialFeatures}
|
|
29
|
+
className={isActive ? "!hc-border-secondary hc-border hc-border-b-0" : "hc-opacity-85"}
|
|
30
|
+
bodyClassName={bodyClassName}
|
|
31
|
+
onItemSelected={onItemSelected}
|
|
32
|
+
setMobileTab={setMobileTab}
|
|
33
|
+
siteConfig={siteConfig}
|
|
34
|
+
trackEvent={trackEvent}
|
|
35
|
+
eventTypes={eventTypes}
|
|
36
|
+
favorites={favorites}
|
|
37
|
+
handleSettingFavorites={handleSettingFavorites}
|
|
38
|
+
{...props}
|
|
39
|
+
/>
|
|
40
|
+
);
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
export default ListItemContainer;
|