@abcagency/hc-ui-components 1.3.26 → 1.3.28
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/components/HireControlMap.js +10 -2
- package/dist/components/HireControlMap.js.map +1 -1
- package/dist/components/containers/filter/commute-container.js +1 -1
- package/dist/components/containers/jobListing/listing-details-container.js.map +1 -1
- package/dist/components/containers/list/list-item/list-item-container.js.map +1 -1
- package/dist/components/containers/maps/map-container.js +34 -35
- package/dist/components/containers/maps/map-container.js.map +1 -1
- package/dist/components/containers/maps/map-list-container.js +2 -2
- package/dist/components/containers/maps/map-list-container.js.map +1 -1
- package/dist/components/containers/maps/map-marker-container.js +1 -1
- package/dist/components/modules/accordions/default.js +2 -2
- package/dist/components/modules/buttons/button-group-apply.js +1 -1
- package/dist/components/modules/buttons/default.js +2 -2
- package/dist/components/modules/cards/default.js +2 -2
- package/dist/components/modules/dialogs/apply-dialog.js +1 -1
- package/dist/components/modules/filter/commute.js +2 -2
- package/dist/components/modules/filter/search.js +1 -0
- package/dist/components/modules/filter/search.js.map +1 -1
- package/dist/components/modules/filter/sort.js +2 -2
- package/dist/components/modules/grid.js +1 -1
- package/dist/components/modules/icon.js +1 -1
- package/dist/components/modules/jobListing/listing-details.js +2 -23
- package/dist/components/modules/jobListing/listing-details.js.map +1 -1
- package/dist/components/modules/list/header.js +1 -1
- package/dist/components/modules/list/item-expand-card/index.js +1 -1
- package/dist/components/modules/list/item-expand-card/recruiter-details.js +1 -1
- package/dist/components/modules/list/list-item/list-item.js.map +1 -1
- package/dist/components/modules/maps/map-marker.js +1 -1
- package/dist/components/modules/maps/map.js +4 -13
- package/dist/components/modules/maps/map.js.map +1 -1
- package/dist/components/modules/maps/place-marker.js +1 -1
- package/dist/components/modules/maps/tabs.js +1 -1
- package/dist/contexts/themeContext.js +33 -0
- package/dist/contexts/themeContext.js.map +1 -0
- package/dist/styles/index.css +1 -1
- package/dist/types/components/modules/jobListing/listing-details.d.ts +1 -1
- package/dist/types/contexts/themeContext.d.ts +11 -0
- package/dist/util/filterUtil.js +1 -1
- package/dist/util/urlFilterUtil.js +10 -7
- package/dist/util/urlFilterUtil.js.map +1 -1
- package/package.json +1 -1
- package/src/components/HireControlMap.js +58 -55
- 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 +37 -35
- package/src/components/containers/maps/map-list-container.js +1 -1
- package/src/components/modules/filter/search.js +1 -0
- package/src/components/modules/jobListing/listing-details.js +109 -109
- package/src/components/modules/list/list-item/list-item.js +130 -130
- package/src/components/modules/maps/map.js +5 -17
- package/src/contexts/themeContext.js +40 -0
- package/src/styles/index.css +33 -24
- package/src/util/urlFilterUtil.js +10 -9
|
@@ -14,6 +14,7 @@ import { getMapConfig } from '~/services/configService';
|
|
|
14
14
|
import { setClientAuthKey } from '~/clientToken.js';
|
|
15
15
|
|
|
16
16
|
import '../styles/index.css';
|
|
17
|
+
import { ThemeProvider } from '~/contexts/themeContext';
|
|
17
18
|
|
|
18
19
|
const libraries = ['places'];
|
|
19
20
|
|
|
@@ -72,62 +73,64 @@ const HomeBody = ({ siteConfig, navigateToDetails, navigateToEasyApply, Link, li
|
|
|
72
73
|
|
|
73
74
|
return (
|
|
74
75
|
<TrackEventProvider trackEvent={trackEvent}>
|
|
75
|
-
<
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
<
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
<Grid
|
|
100
|
-
as='section'
|
|
101
|
-
id='job-search-interface'
|
|
102
|
-
columns='md:hc-grid-cols-[1fr_2.5fr] lg:hc-grid-cols-[1fr_3.5fr]'
|
|
103
|
-
gap='hc-gap-0'
|
|
104
|
-
autoRows={false}
|
|
105
|
-
className='hc-bundle hc-items-stretch hc-h-screen hc-min-h-[30rem] hc-divide-x hc-divide-uiAccent/20'
|
|
76
|
+
<ThemeProvider uiText={siteConfig.colors.uiText} uiAccent={siteConfig.colors.uiAccent} primary={siteConfig.colors.primary} primaryDark={siteConfig.colors.primaryDark} secondary={siteConfig.colors.secondary} secondaryDark={siteConfig.colors.secondaryDark}>
|
|
77
|
+
<MapListProvider
|
|
78
|
+
siteConfig={siteConfig}
|
|
79
|
+
resetFilters={resetFilters}
|
|
80
|
+
avigateToDetails={navigateToDetails}
|
|
81
|
+
navigateToEasyApply={navigateToEasyApply}
|
|
82
|
+
Link={Link}
|
|
83
|
+
linkFormat={linkFormat}
|
|
84
|
+
listings={listings}
|
|
85
|
+
setFiltersUrl={setFiltersUrl}
|
|
86
|
+
>
|
|
87
|
+
<MapProvider resetFilters={resetFilters}>
|
|
88
|
+
<PlacesProvider
|
|
89
|
+
placeMappings={siteConfig.pointsOfInterestConfig.placeMappings ?? {}}
|
|
90
|
+
markerColors={{
|
|
91
|
+
fillColor: siteConfig.colors.primary,
|
|
92
|
+
strokeColor: siteConfig.colors.primaryDark,
|
|
93
|
+
selectedFillColor: siteConfig.colors.secondary,
|
|
94
|
+
selectedStrokeColor: siteConfig.colors.secondaryDark,
|
|
95
|
+
placeMarkers: {
|
|
96
|
+
colors: siteConfig.pointsOfInterestConfig.placeMarkerColors,
|
|
97
|
+
size: siteConfig.pointsOfInterestConfig.placeMarkerSize
|
|
98
|
+
}
|
|
99
|
+
}}
|
|
106
100
|
>
|
|
107
|
-
<Grid
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
101
|
+
<Grid
|
|
102
|
+
as='section'
|
|
103
|
+
id='job-search-interface'
|
|
104
|
+
columns='md:hc-grid-cols-[1fr_2.5fr] lg:hc-grid-cols-[1fr_3.5fr]'
|
|
105
|
+
gap='hc-gap-0'
|
|
106
|
+
autoRows={false}
|
|
107
|
+
className='hc-bundle hc-items-stretch hc-h-screen hc-min-h-[30rem] hc-divide-x hc-divide-uiAccent/20'
|
|
108
|
+
>
|
|
109
|
+
<Grid.Item className='hc-bg-gray-100'>
|
|
110
|
+
<Filter showMap={siteConfig.showMap} className='hc-hidden md:hc-block' />
|
|
111
|
+
</Grid.Item>
|
|
112
|
+
<MapList
|
|
113
|
+
markerConfigs={{
|
|
114
|
+
fillColor: siteConfig.colors.primary,
|
|
115
|
+
strokeColor: siteConfig.colors.primaryDark,
|
|
116
|
+
selectedFillColor: siteConfig.colors.secondary,
|
|
117
|
+
selectedStrokeColor: siteConfig.colors.secondaryDark,
|
|
118
|
+
placeMarkers: {
|
|
119
|
+
colors: siteConfig.pointsOfInterestConfig.placeMarkerColors,
|
|
120
|
+
size: siteConfig.pointsOfInterestConfig.placeMarkerSize
|
|
121
|
+
}
|
|
122
|
+
}}
|
|
123
|
+
showMap={siteConfig.showMap}
|
|
124
|
+
fieldsShown={siteConfig.fieldsShown}
|
|
125
|
+
specialFeatures={siteConfig.specialFeatures}
|
|
126
|
+
fieldNames={siteConfig.fieldNames}
|
|
127
|
+
placeMappings={siteConfig.pointsOfInterestConfig.placeMappings ?? {}}
|
|
128
|
+
/>
|
|
129
|
+
</Grid>
|
|
130
|
+
</PlacesProvider>
|
|
131
|
+
</MapProvider>
|
|
132
|
+
</MapListProvider>
|
|
133
|
+
</ThemeProvider>
|
|
131
134
|
</TrackEventProvider>
|
|
132
135
|
);
|
|
133
136
|
};
|
|
@@ -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;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/* eslint-disable no-undef */
|
|
2
1
|
import React, { useEffect, useRef } from 'react';
|
|
3
2
|
|
|
4
3
|
import MapMarker from "~/components/containers/maps/map-marker-container";
|
|
@@ -11,17 +10,18 @@ import { useMapList } from "~/contexts/mapListContext";
|
|
|
11
10
|
import { markerIconSelected, markerIcon, pinIcon } from "~/util/mapIconUtil";
|
|
12
11
|
|
|
13
12
|
import Map from "~/components/modules/maps/map";
|
|
13
|
+
import { MarkerClustererF } from "@react-google-maps/api";
|
|
14
|
+
import { clusterOptions } from "~/util/mapUtil";
|
|
14
15
|
|
|
15
16
|
const MapContainer = ({
|
|
16
17
|
markerConfigs,
|
|
17
18
|
infoWindowClasses,
|
|
18
|
-
clusterGridSize =
|
|
19
|
+
clusterGridSize = 10
|
|
19
20
|
}) => {
|
|
20
21
|
const {
|
|
21
22
|
location,
|
|
22
23
|
zoom,
|
|
23
24
|
center,
|
|
24
|
-
commuteLocation,
|
|
25
25
|
selectLocationEntity,
|
|
26
26
|
setLocation,
|
|
27
27
|
mapInteracted,
|
|
@@ -151,33 +151,6 @@ const MapContainer = ({
|
|
|
151
151
|
strokeColor: markerConfigs.strokeColor
|
|
152
152
|
});
|
|
153
153
|
|
|
154
|
-
const mapMarkers = mapItems.map(item => (
|
|
155
|
-
<MapMarker
|
|
156
|
-
key={item.id}
|
|
157
|
-
item={item}
|
|
158
|
-
selectedLocation={location}
|
|
159
|
-
markerRefs={markerRefs}
|
|
160
|
-
infoWindowClasses={infoWindowClasses}
|
|
161
|
-
setSelectedLocation={setLocation}
|
|
162
|
-
markerClickHandler={markerClickHandler}
|
|
163
|
-
markerIcon={markerIcon(markerConfigs)}
|
|
164
|
-
markerIconSelected={markerIconSelected(markerConfigs)}
|
|
165
|
-
setMapInteracted={setMapInteracted}
|
|
166
|
-
/>
|
|
167
|
-
));
|
|
168
|
-
|
|
169
|
-
const placeMarkers = poiMarkers.markers.map((marker, index) => (
|
|
170
|
-
<PlaceMarker
|
|
171
|
-
key={`marker-${marker.title}-${index}`}
|
|
172
|
-
marker={marker}
|
|
173
|
-
index={index}
|
|
174
|
-
selectedPlaceMarker={selectedPlaceMarker}
|
|
175
|
-
placesWindow={placesWindow}
|
|
176
|
-
setPlacesWindow={setPlacesWindow}
|
|
177
|
-
setSelectedPlaceMarker={setSelectedPlaceMarker}
|
|
178
|
-
/>
|
|
179
|
-
));
|
|
180
|
-
|
|
181
154
|
return (
|
|
182
155
|
<Map
|
|
183
156
|
zoom={zoom}
|
|
@@ -185,10 +158,6 @@ const MapContainer = ({
|
|
|
185
158
|
mapContainerRef={mapContainerRef}
|
|
186
159
|
onLoad={onLoad}
|
|
187
160
|
onIdle={onIdle}
|
|
188
|
-
clusterGridSize={clusterGridSize}
|
|
189
|
-
markerConfigs={markerConfigs}
|
|
190
|
-
mapMarkers={mapMarkers}
|
|
191
|
-
placeMarkers={placeMarkers}
|
|
192
161
|
mapInteracted={mapInteracted}
|
|
193
162
|
pinIconUrl={pinIconUrl}
|
|
194
163
|
setMapInteracted={setMapInteracted}
|
|
@@ -197,7 +166,40 @@ const MapContainer = ({
|
|
|
197
166
|
setQuery={setQuery}
|
|
198
167
|
filteredListingsLength={filteredListings.length}
|
|
199
168
|
setSelectedFilters={setSelectedFilters}
|
|
200
|
-
|
|
169
|
+
>
|
|
170
|
+
<MarkerClustererF options={clusterOptions(clusterGridSize, markerConfigs.fillColor)}>
|
|
171
|
+
{clusterer => (
|
|
172
|
+
<>
|
|
173
|
+
{mapItems.map(item => (
|
|
174
|
+
<MapMarker
|
|
175
|
+
key={item.id}
|
|
176
|
+
item={item}
|
|
177
|
+
selectedLocation={location}
|
|
178
|
+
markerRefs={markerRefs}
|
|
179
|
+
infoWindowClasses={infoWindowClasses}
|
|
180
|
+
setSelectedLocation={setLocation}
|
|
181
|
+
markerClickHandler={markerClickHandler}
|
|
182
|
+
clusterer={clusterer}
|
|
183
|
+
markerIcon={markerIcon(markerConfigs)}
|
|
184
|
+
markerIconSelected={markerIconSelected(markerConfigs)}
|
|
185
|
+
setMapInteracted={setMapInteracted}
|
|
186
|
+
/>
|
|
187
|
+
))}
|
|
188
|
+
{poiMarkers && poiMarkers.markers.map((marker, index) => (
|
|
189
|
+
<PlaceMarker
|
|
190
|
+
key={`marker-${marker.title}-${index}`}
|
|
191
|
+
marker={marker}
|
|
192
|
+
index={index}
|
|
193
|
+
selectedPlaceMarker={selectedPlaceMarker}
|
|
194
|
+
placesWindow={placesWindow}
|
|
195
|
+
setPlacesWindow={setPlacesWindow}
|
|
196
|
+
setSelectedPlaceMarker={setSelectedPlaceMarker}
|
|
197
|
+
/>
|
|
198
|
+
))}
|
|
199
|
+
</>
|
|
200
|
+
)}
|
|
201
|
+
</MarkerClustererF>
|
|
202
|
+
</Map>
|
|
201
203
|
);
|
|
202
204
|
};
|
|
203
205
|
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
|
|
3
3
|
import List from '~/components/containers/list/item-list-container';
|
|
4
4
|
import Map from '~/components/containers/maps/map-container';
|
|
5
|
-
import Filter from '~/components/
|
|
5
|
+
import Filter from '~/components/containers/filter/filter-container';
|
|
6
6
|
import MapList from '~/components/modules/maps/map-list';
|
|
7
7
|
|
|
8
8
|
const MapListContainer = ({
|
|
@@ -1,109 +1,109 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import RecruiterHeadshot from '~/components/modules/list/item-expand-card/recruiter-headshot';
|
|
3
|
-
import RecruiterDetails from '~/components/modules/list/item-expand-card/recruiter-details';
|
|
4
|
-
import RecruiterContactNav from '~/components/modules/list/item-expand-card/recruiter-contact-nav';
|
|
5
|
-
import ApplyButtonGroup from '~/components/modules/buttons/button-group-apply';
|
|
6
|
-
import CommutePill from '~/components/modules/buttons/commute-pill';
|
|
7
|
-
|
|
8
|
-
const ListingDetails = ({
|
|
9
|
-
item,
|
|
10
|
-
recruiter,
|
|
11
|
-
travelTime,
|
|
12
|
-
useDetailsPostMessage,
|
|
13
|
-
navigateToDetails,
|
|
14
|
-
navigateToEasyApply,
|
|
15
|
-
Link,
|
|
16
|
-
linkFormat,
|
|
17
|
-
useApplyDialog,
|
|
18
|
-
internalApplyLink,
|
|
19
|
-
companyName,
|
|
20
|
-
jobsDomain,
|
|
21
|
-
trackEvent,
|
|
22
|
-
eventTypes
|
|
23
|
-
}) => {
|
|
24
|
-
if (!item) {
|
|
25
|
-
return null;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
let matchingRecruiter = recruiter;
|
|
29
|
-
console.log(matchingRecruiter);
|
|
30
|
-
return (
|
|
31
|
-
<div className="hc-w-full">
|
|
32
|
-
<div className="hc-grow hc-flex hc-flex-wrap hc-items-center hc-gap-4">
|
|
33
|
-
{matchingRecruiter?.headshot && (
|
|
34
|
-
<RecruiterHeadshot
|
|
35
|
-
image={`${matchingRecruiter.headshot.includes("http") ? '' :'https:'}${matchingRecruiter.headshot}`}
|
|
36
|
-
alt={matchingRecruiter?.firstName}
|
|
37
|
-
className="hc-bg-gray-300"
|
|
38
|
-
/>
|
|
39
|
-
)}
|
|
40
|
-
{matchingRecruiter && (
|
|
41
|
-
<RecruiterDetails
|
|
42
|
-
contactNav={
|
|
43
|
-
<RecruiterContactNav>
|
|
44
|
-
{matchingRecruiter?.mobilePhone && (
|
|
45
|
-
<RecruiterContactNav.Button
|
|
46
|
-
href={`tel:${matchingRecruiter.mobilePhone}`}
|
|
47
|
-
title={`Call ${matchingRecruiter.mobilePhone}`}
|
|
48
|
-
icon="fluent:phone-32-regular"
|
|
49
|
-
/>
|
|
50
|
-
)}
|
|
51
|
-
{matchingRecruiter?.email && (
|
|
52
|
-
<RecruiterContactNav.Button
|
|
53
|
-
href={`mailto:${matchingRecruiter.email}`}
|
|
54
|
-
title={`email ${matchingRecruiter.email}`}
|
|
55
|
-
icon="bi:envelope-at"
|
|
56
|
-
/>
|
|
57
|
-
)}
|
|
58
|
-
{matchingRecruiter?.linkedIn && (
|
|
59
|
-
<RecruiterContactNav.Button
|
|
60
|
-
href={matchingRecruiter.linkedIn}
|
|
61
|
-
title="LinkedIn"
|
|
62
|
-
icon="ant-design:linkedin-outlined"
|
|
63
|
-
/>
|
|
64
|
-
)}
|
|
65
|
-
</RecruiterContactNav>
|
|
66
|
-
}
|
|
67
|
-
>
|
|
68
|
-
{matchingRecruiter?.firstName || matchingRecruiter?.lastName && (
|
|
69
|
-
<RecruiterDetails.Title>
|
|
70
|
-
{`${matchingRecruiter?.firstName} ${matchingRecruiter?.lastName}`}
|
|
71
|
-
</RecruiterDetails.Title>
|
|
72
|
-
)}
|
|
73
|
-
{item.details?.recruiter?.title && (
|
|
74
|
-
<RecruiterDetails.Text>
|
|
75
|
-
{item.details.recruiter.title}
|
|
76
|
-
</RecruiterDetails.Text>
|
|
77
|
-
)}
|
|
78
|
-
</RecruiterDetails>
|
|
79
|
-
)}
|
|
80
|
-
<ApplyButtonGroup
|
|
81
|
-
useDetailsPostMessage={useDetailsPostMessage}
|
|
82
|
-
navigateToDetails={navigateToDetails}
|
|
83
|
-
navigateToEasyApply={navigateToEasyApply}
|
|
84
|
-
Link={Link}
|
|
85
|
-
linkFormat={linkFormat}
|
|
86
|
-
includeDialog={useApplyDialog}
|
|
87
|
-
internalApplyLink={internalApplyLink}
|
|
88
|
-
companyName={companyName}
|
|
89
|
-
applyUrl={item?.applyUrl}
|
|
90
|
-
itemId={item.id}
|
|
91
|
-
item={item}
|
|
92
|
-
trackEvent={trackEvent}
|
|
93
|
-
eventTypes={eventTypes}
|
|
94
|
-
detailsUrl={item.useClientJobUrl ? item?.detailsUrl : `${jobsDomain}${item.id}`}
|
|
95
|
-
className={`
|
|
96
|
-
lg:hc-w-auto hc-order-first lg:hc-order-last md:hc-self-center hc-py-2 lg:hc-p-0 lg:hc-mb-0 hc-border-b lg:hc-border-none hc-border-uiAccent/20
|
|
97
|
-
${matchingRecruiter ? "lg:hc-flex-col lg:hc-w-auto" : "lg:hc-flex-row"}
|
|
98
|
-
`}
|
|
99
|
-
/>
|
|
100
|
-
</div>
|
|
101
|
-
<div className="hc-w-full">
|
|
102
|
-
<CommutePill travelTime={travelTime} className="hc-ml-0" />
|
|
103
|
-
</div>
|
|
104
|
-
</div>
|
|
105
|
-
);
|
|
106
|
-
};
|
|
107
|
-
|
|
108
|
-
export default ListingDetails;
|
|
109
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import RecruiterHeadshot from '~/components/modules/list/item-expand-card/recruiter-headshot';
|
|
3
|
+
import RecruiterDetails from '~/components/modules/list/item-expand-card/recruiter-details';
|
|
4
|
+
import RecruiterContactNav from '~/components/modules/list/item-expand-card/recruiter-contact-nav';
|
|
5
|
+
import ApplyButtonGroup from '~/components/modules/buttons/button-group-apply';
|
|
6
|
+
import CommutePill from '~/components/modules/buttons/commute-pill';
|
|
7
|
+
|
|
8
|
+
const ListingDetails = ({
|
|
9
|
+
item,
|
|
10
|
+
recruiter,
|
|
11
|
+
travelTime,
|
|
12
|
+
useDetailsPostMessage,
|
|
13
|
+
navigateToDetails,
|
|
14
|
+
navigateToEasyApply,
|
|
15
|
+
Link,
|
|
16
|
+
linkFormat,
|
|
17
|
+
useApplyDialog,
|
|
18
|
+
internalApplyLink,
|
|
19
|
+
companyName,
|
|
20
|
+
jobsDomain,
|
|
21
|
+
trackEvent,
|
|
22
|
+
eventTypes,
|
|
23
|
+
}) => {
|
|
24
|
+
if (!item) {
|
|
25
|
+
return null;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
let matchingRecruiter = recruiter;
|
|
29
|
+
console.log(matchingRecruiter);
|
|
30
|
+
return (
|
|
31
|
+
<div className="hc-w-full">
|
|
32
|
+
<div className="hc-grow hc-flex hc-flex-wrap hc-items-center hc-gap-4">
|
|
33
|
+
{/* {matchingRecruiter?.headshot && (
|
|
34
|
+
<RecruiterHeadshot
|
|
35
|
+
image={`${matchingRecruiter.headshot.includes("http") ? '' :'https:'}${matchingRecruiter.headshot}`}
|
|
36
|
+
alt={matchingRecruiter?.firstName}
|
|
37
|
+
className="hc-bg-gray-300"
|
|
38
|
+
/>
|
|
39
|
+
)}
|
|
40
|
+
{matchingRecruiter && (
|
|
41
|
+
<RecruiterDetails
|
|
42
|
+
contactNav={
|
|
43
|
+
<RecruiterContactNav>
|
|
44
|
+
{matchingRecruiter?.mobilePhone && (
|
|
45
|
+
<RecruiterContactNav.Button
|
|
46
|
+
href={`tel:${matchingRecruiter.mobilePhone}`}
|
|
47
|
+
title={`Call ${matchingRecruiter.mobilePhone}`}
|
|
48
|
+
icon="fluent:phone-32-regular"
|
|
49
|
+
/>
|
|
50
|
+
)}
|
|
51
|
+
{matchingRecruiter?.email && (
|
|
52
|
+
<RecruiterContactNav.Button
|
|
53
|
+
href={`mailto:${matchingRecruiter.email}`}
|
|
54
|
+
title={`email ${matchingRecruiter.email}`}
|
|
55
|
+
icon="bi:envelope-at"
|
|
56
|
+
/>
|
|
57
|
+
)}
|
|
58
|
+
{matchingRecruiter?.linkedIn && (
|
|
59
|
+
<RecruiterContactNav.Button
|
|
60
|
+
href={matchingRecruiter.linkedIn}
|
|
61
|
+
title="LinkedIn"
|
|
62
|
+
icon="ant-design:linkedin-outlined"
|
|
63
|
+
/>
|
|
64
|
+
)}
|
|
65
|
+
</RecruiterContactNav>
|
|
66
|
+
}
|
|
67
|
+
>
|
|
68
|
+
{matchingRecruiter?.firstName || matchingRecruiter?.lastName && (
|
|
69
|
+
<RecruiterDetails.Title>
|
|
70
|
+
{`${matchingRecruiter?.firstName} ${matchingRecruiter?.lastName}`}
|
|
71
|
+
</RecruiterDetails.Title>
|
|
72
|
+
)}
|
|
73
|
+
{item.details?.recruiter?.title && (
|
|
74
|
+
<RecruiterDetails.Text>
|
|
75
|
+
{item.details.recruiter.title}
|
|
76
|
+
</RecruiterDetails.Text>
|
|
77
|
+
)}
|
|
78
|
+
</RecruiterDetails>
|
|
79
|
+
)} */}
|
|
80
|
+
<ApplyButtonGroup
|
|
81
|
+
useDetailsPostMessage={useDetailsPostMessage}
|
|
82
|
+
navigateToDetails={navigateToDetails}
|
|
83
|
+
navigateToEasyApply={navigateToEasyApply}
|
|
84
|
+
Link={Link}
|
|
85
|
+
linkFormat={linkFormat}
|
|
86
|
+
includeDialog={useApplyDialog}
|
|
87
|
+
internalApplyLink={internalApplyLink}
|
|
88
|
+
companyName={companyName}
|
|
89
|
+
applyUrl={item?.applyUrl}
|
|
90
|
+
itemId={item.id}
|
|
91
|
+
item={item}
|
|
92
|
+
trackEvent={trackEvent}
|
|
93
|
+
eventTypes={eventTypes}
|
|
94
|
+
detailsUrl={item.useClientJobUrl ? item?.detailsUrl : `${jobsDomain}${item.id}`}
|
|
95
|
+
className={`
|
|
96
|
+
lg:hc-w-auto hc-order-first lg:hc-order-last md:hc-self-center hc-py-2 lg:hc-p-0 lg:hc-mb-0 hc-border-b lg:hc-border-none hc-border-uiAccent/20
|
|
97
|
+
${matchingRecruiter ? "lg:hc-flex-col lg:hc-w-auto" : "lg:hc-flex-row"}
|
|
98
|
+
`}
|
|
99
|
+
/>
|
|
100
|
+
</div>
|
|
101
|
+
<div className="hc-w-full">
|
|
102
|
+
<CommutePill travelTime={travelTime} className="hc-ml-0" />
|
|
103
|
+
</div>
|
|
104
|
+
</div>
|
|
105
|
+
);
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
export default ListingDetails;
|
|
109
|
+
|