|
|
|
@ -5,7 +5,6 @@ import { Banner } from '@tih/ui';
|
|
|
|
|
|
|
|
|
|
import { useGoogleAnalytics } from '~/components/global/GoogleAnalytics';
|
|
|
|
|
import OffersTable from '~/components/offers/table/OffersTable';
|
|
|
|
|
import CitiesTypeahead from '~/components/shared/CitiesTypeahead';
|
|
|
|
|
import CompaniesTypeahead from '~/components/shared/CompaniesTypeahead';
|
|
|
|
|
import Container from '~/components/shared/Container';
|
|
|
|
|
import CountriesTypeahead from '~/components/shared/CountriesTypeahead';
|
|
|
|
@ -13,22 +12,10 @@ import type { JobTitleType } from '~/components/shared/JobTitles';
|
|
|
|
|
import { JobTitleLabels } from '~/components/shared/JobTitles';
|
|
|
|
|
import JobTitlesTypeahead from '~/components/shared/JobTitlesTypahead';
|
|
|
|
|
|
|
|
|
|
<<<<<<< HEAD
|
|
|
|
|
<<<<<<< HEAD
|
|
|
|
|
import { useSearchParamSingle } from '~/utils/offers/useSearchParam';
|
|
|
|
|
|
|
|
|
|
export default function OffersHomePage() {
|
|
|
|
|
const [countryFilter, setCountryFilter] = useState('');
|
|
|
|
|
=======
|
|
|
|
|
import CitiesTypeahead from '../../components/shared/CitiesTypeahead';
|
|
|
|
|
|
|
|
|
|
=======
|
|
|
|
|
>>>>>>> d6d25df3 ([offers][chore] fix import of cities typeahead)
|
|
|
|
|
export default function OffersHomePage() {
|
|
|
|
|
const [jobTitleFilter, setjobTitleFilter] = useState('software-engineer');
|
|
|
|
|
const [companyFilter, setCompanyFilter] = useState('');
|
|
|
|
|
const [cityFilter, setCityFilter] = useState('');
|
|
|
|
|
>>>>>>> ac2d047d ([offers][feat] integrate location for offer table and profile)
|
|
|
|
|
const { event: gaEvent } = useGoogleAnalytics();
|
|
|
|
|
|
|
|
|
|
const [selectedCompanyName, setSelectedCompanyName] =
|
|
|
|
@ -48,7 +35,6 @@ export default function OffersHomePage() {
|
|
|
|
|
</Link>
|
|
|
|
|
. ⭐
|
|
|
|
|
</Banner>
|
|
|
|
|
<<<<<<< HEAD
|
|
|
|
|
<div className="text-primary-600 flex items-center justify-end space-x-1 bg-slate-100 px-4 pt-4 sm:text-lg">
|
|
|
|
|
<span>
|
|
|
|
|
<MapPinIcon className="flex h-7 w-7" />
|
|
|
|
@ -66,23 +52,6 @@ export default function OffersHomePage() {
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
setCountryFilter('');
|
|
|
|
|
=======
|
|
|
|
|
<div className="text-primary-600 flex items-center justify-end space-x-1 bg-slate-100 px-4 pt-4">
|
|
|
|
|
<span>
|
|
|
|
|
<MapPinIcon className="flex h-7 w-7" />
|
|
|
|
|
</span>
|
|
|
|
|
<CitiesTypeahead
|
|
|
|
|
isLabelHidden={true}
|
|
|
|
|
placeholder="All Cities"
|
|
|
|
|
onSelect={(option) => {
|
|
|
|
|
if (option) {
|
|
|
|
|
setCityFilter(option.value);
|
|
|
|
|
gaEvent({
|
|
|
|
|
action: `offers.table_filter_city_${option.value}`,
|
|
|
|
|
category: 'engagement',
|
|
|
|
|
label: 'Filter by city',
|
|
|
|
|
});
|
|
|
|
|
>>>>>>> ac2d047d ([offers][feat] integrate location for offer table and profile)
|
|
|
|
|
}
|
|
|
|
|
}}
|
|
|
|
|
/>
|
|
|
|
@ -162,18 +131,12 @@ export default function OffersHomePage() {
|
|
|
|
|
</div>
|
|
|
|
|
<Container className="pb-20 pt-10">
|
|
|
|
|
<OffersTable
|
|
|
|
|
<<<<<<< HEAD
|
|
|
|
|
companyFilter={selectedCompanyId}
|
|
|
|
|
companyName={selectedCompanyName}
|
|
|
|
|
countryFilter={countryFilter}
|
|
|
|
|
jobTitleFilter={selectedJobTitleId ?? ''}
|
|
|
|
|
=======
|
|
|
|
|
cityFilter={cityFilter}
|
|
|
|
|
companyFilter={companyFilter}
|
|
|
|
|
jobTitleFilter={jobTitleFilter}
|
|
|
|
|
>>>>>>> ac2d047d ([offers][feat] integrate location for offer table and profile)
|
|
|
|
|
/>
|
|
|
|
|
</Container>
|
|
|
|
|
</main>
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|