import Link from 'next/link'; import { useState } from 'react'; import { MapPinIcon } from '@heroicons/react/24/outline'; import { Banner } from '@tih/ui'; import { useGoogleAnalytics } from '~/components/global/GoogleAnalytics'; import OffersTable from '~/components/offers/table/OffersTable'; import CompaniesTypeahead from '~/components/shared/CompaniesTypeahead'; import Container from '~/components/shared/Container'; import CountriesTypeahead from '~/components/shared/CountriesTypeahead'; import type { JobTitleType } from '~/components/shared/JobTitles'; import { JobTitleLabels } from '~/components/shared/JobTitles'; import JobTitlesTypeahead from '~/components/shared/JobTitlesTypahead'; <<<<<<< HEAD import { useSearchParamSingle } from '~/utils/offers/useSearchParam'; export default function OffersHomePage() { const [countryFilter, setCountryFilter] = useState(''); ======= import CitiesTypeahead from '../../components/shared/CitiesTypeahead'; 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] = useSearchParamSingle('companyName'); const [selectedCompanyId, setSelectedCompanyId] = useSearchParamSingle('companyId'); const [selectedJobTitleId, setSelectedJobTitleId] = useSearchParamSingle('jobTitleId'); return (
⭐ Check if your offer is competitive by submitting it{' '} here . ⭐ <<<<<<< HEAD
{ if (option) { setCountryFilter(option.value); gaEvent({ action: `offers.table_filter_country_${option.value}`, category: 'engagement', label: 'Filter by country', }); } else { setCountryFilter(''); =======
{ 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) } }} />

Tech Offers Repo

Find out how good your offer is. Discover how others got their offers.
Viewing offers for
{ if (option) { setSelectedJobTitleId(option.id as JobTitleType); gaEvent({ action: `offers.table_filter_job_title_${option.value}`, category: 'engagement', label: 'Filter by job title', }); } else { setSelectedJobTitleId(null); } }} /> in { if (option) { setSelectedCompanyId(option.id); setSelectedCompanyName(option.label); gaEvent({ action: `offers.table_filter_company_${option.value}`, category: 'engagement', label: 'Filter by company', }); } else { setSelectedCompanyId(''); setSelectedCompanyName(''); } }} />
>>>>>> ac2d047d ([offers][feat] integrate location for offer table and profile) />
); }