|
|
@ -3,6 +3,7 @@ import { ArrowSmallRightIcon } from '@heroicons/react/24/outline';
|
|
|
|
import type { QuestionsQuestionType } from '@prisma/client';
|
|
|
|
import type { QuestionsQuestionType } from '@prisma/client';
|
|
|
|
import { Button, Select } from '@tih/ui';
|
|
|
|
import { Button, Select } from '@tih/ui';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import { companyOptionToSlug } from '~/utils/questions/companySlug';
|
|
|
|
import { QUESTION_TYPES } from '~/utils/questions/constants';
|
|
|
|
import { QUESTION_TYPES } from '~/utils/questions/constants';
|
|
|
|
import useDefaultCompany from '~/utils/questions/useDefaultCompany';
|
|
|
|
import useDefaultCompany from '~/utils/questions/useDefaultCompany';
|
|
|
|
import useDefaultLocation from '~/utils/questions/useDefaultLocation';
|
|
|
|
import useDefaultLocation from '~/utils/questions/useDefaultLocation';
|
|
|
@ -12,7 +13,7 @@ import CompanyTypeahead from './typeahead/CompanyTypeahead';
|
|
|
|
import LocationTypeahead from './typeahead/LocationTypeahead';
|
|
|
|
import LocationTypeahead from './typeahead/LocationTypeahead';
|
|
|
|
|
|
|
|
|
|
|
|
export type LandingQueryData = {
|
|
|
|
export type LandingQueryData = {
|
|
|
|
company: string;
|
|
|
|
companySlug: string;
|
|
|
|
location: string;
|
|
|
|
location: string;
|
|
|
|
questionType: QuestionsQuestionType;
|
|
|
|
questionType: QuestionsQuestionType;
|
|
|
|
};
|
|
|
|
};
|
|
|
@ -71,7 +72,7 @@ export default function LandingComponent({
|
|
|
|
className="h-40 w-40"
|
|
|
|
className="h-40 w-40"
|
|
|
|
src="/bank-logo.png"
|
|
|
|
src="/bank-logo.png"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
<h1 className="text-4xl font-bold text-slate-900 text-center">
|
|
|
|
<h1 className="text-center text-4xl font-bold text-slate-900">
|
|
|
|
Tech Interview Question Bank
|
|
|
|
Tech Interview Question Bank
|
|
|
|
</h1>
|
|
|
|
</h1>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -124,7 +125,7 @@ export default function LandingComponent({
|
|
|
|
onClick={() => {
|
|
|
|
onClick={() => {
|
|
|
|
if (company !== undefined && location !== undefined) {
|
|
|
|
if (company !== undefined && location !== undefined) {
|
|
|
|
return handleLandingQuery({
|
|
|
|
return handleLandingQuery({
|
|
|
|
company: company.label,
|
|
|
|
companySlug: companyOptionToSlug(company),
|
|
|
|
location: location.value,
|
|
|
|
location: location.value,
|
|
|
|
questionType,
|
|
|
|
questionType,
|
|
|
|
});
|
|
|
|
});
|
|
|
|