mirror of
https://github.com/yangshun/tech-interview-handbook.git
synced 2026-02-02 18:21:37 +08:00
chore: merge ui package into portal
This commit is contained in:
@@ -22,7 +22,6 @@
|
|||||||
"@popperjs/core": "^2.11.6",
|
"@popperjs/core": "^2.11.6",
|
||||||
"@prisma/client": "^4.4.0",
|
"@prisma/client": "^4.4.0",
|
||||||
"@supabase/supabase-js": "^1.35.7",
|
"@supabase/supabase-js": "^1.35.7",
|
||||||
"@tih/ui": "workspace:0.0.0",
|
|
||||||
"@trpc/client": "^9.27.2",
|
"@trpc/client": "^9.27.2",
|
||||||
"@trpc/next": "^9.27.2",
|
"@trpc/next": "^9.27.2",
|
||||||
"@trpc/react": "^9.27.2",
|
"@trpc/react": "^9.27.2",
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import type { ReactNode } from 'react';
|
|||||||
import { Fragment, useState } from 'react';
|
import { Fragment, useState } from 'react';
|
||||||
import { Menu, Transition } from '@headlessui/react';
|
import { Menu, Transition } from '@headlessui/react';
|
||||||
import { Bars3BottomLeftIcon } from '@heroicons/react/24/outline';
|
import { Bars3BottomLeftIcon } from '@heroicons/react/24/outline';
|
||||||
import { Button } from '@tih/ui';
|
import { Button } from '~/ui';
|
||||||
|
|
||||||
import GlobalNavigation from '~/components/global/GlobalNavigation';
|
import GlobalNavigation from '~/components/global/GlobalNavigation';
|
||||||
import HomeNavigation from '~/components/global/HomeNavigation';
|
import HomeNavigation from '~/components/global/HomeNavigation';
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import Link from 'next/link';
|
|||||||
import { Fragment } from 'react';
|
import { Fragment } from 'react';
|
||||||
import { Dialog, Transition } from '@headlessui/react';
|
import { Dialog, Transition } from '@headlessui/react';
|
||||||
import { XMarkIcon } from '@heroicons/react/24/outline';
|
import { XMarkIcon } from '@heroicons/react/24/outline';
|
||||||
import { HorizontalDivider } from '@tih/ui';
|
import { HorizontalDivider } from '~/ui';
|
||||||
|
|
||||||
import type { GlobalNavigationItems } from './GlobalNavigation';
|
import type { GlobalNavigationItems } from './GlobalNavigation';
|
||||||
import type { ProductNavigationItems } from './ProductNavigation';
|
import type { ProductNavigationItems } from './ProductNavigation';
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { useRouter } from 'next/router';
|
import { useRouter } from 'next/router';
|
||||||
import { useEffect, useMemo, useRef, useState } from 'react';
|
import { useEffect, useMemo, useRef, useState } from 'react';
|
||||||
import { JobType } from '@prisma/client';
|
import { JobType } from '@prisma/client';
|
||||||
import { DropdownMenu, Spinner, useToast } from '@tih/ui';
|
import { DropdownMenu, Spinner, useToast } from '~/ui';
|
||||||
|
|
||||||
import { useGoogleAnalytics } from '~/components/global/GoogleAnalytics';
|
import { useGoogleAnalytics } from '~/components/global/GoogleAnalytics';
|
||||||
import OffersHeader from '~/components/offers/admin/OffersHeader';
|
import OffersHeader from '~/components/offers/admin/OffersHeader';
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { useEffect, useState } from 'react';
|
import { useEffect, useState } from 'react';
|
||||||
import { Pagination, Spinner } from '@tih/ui';
|
import { Pagination, Spinner } from '~/ui';
|
||||||
|
|
||||||
import type { Paging } from '~/types/offers';
|
import type { Paging } from '~/types/offers';
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { useRouter } from 'next/router';
|
import { useRouter } from 'next/router';
|
||||||
import { BookmarkSlashIcon } from '@heroicons/react/20/solid';
|
import { BookmarkSlashIcon } from '@heroicons/react/20/solid';
|
||||||
import { ArrowRightIcon } from '@heroicons/react/24/outline';
|
import { ArrowRightIcon } from '@heroicons/react/24/outline';
|
||||||
import { Button, useToast } from '@tih/ui';
|
import { Button, useToast } from '~/ui';
|
||||||
|
|
||||||
import { useGoogleAnalytics } from '~/components/global/GoogleAnalytics';
|
import { useGoogleAnalytics } from '~/components/global/GoogleAnalytics';
|
||||||
import DashboardOfferCard from '~/components/offers/dashboard/DashboardOfferCard';
|
import DashboardOfferCard from '~/components/offers/dashboard/DashboardOfferCard';
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import type { ComponentProps } from 'react';
|
import type { ComponentProps } from 'react';
|
||||||
import { useFormContext } from 'react-hook-form';
|
import { useFormContext } from 'react-hook-form';
|
||||||
import { RadioList } from '@tih/ui';
|
import { RadioList } from '~/ui';
|
||||||
|
|
||||||
type RadioListProps = ComponentProps<typeof RadioList>;
|
type RadioListProps = ComponentProps<typeof RadioList>;
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { HorizontalDivider } from '@tih/ui';
|
import { HorizontalDivider } from '~/ui';
|
||||||
|
|
||||||
export default function FormSection({
|
export default function FormSection({
|
||||||
children,
|
children,
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import type { ComponentProps, ForwardedRef } from 'react';
|
import type { ComponentProps, ForwardedRef } from 'react';
|
||||||
import { forwardRef } from 'react';
|
import { forwardRef } from 'react';
|
||||||
import { useFormContext } from 'react-hook-form';
|
import { useFormContext } from 'react-hook-form';
|
||||||
import { Select } from '@tih/ui';
|
import { Select } from '~/ui';
|
||||||
|
|
||||||
type SelectProps = ComponentProps<typeof Select>;
|
type SelectProps = ComponentProps<typeof Select>;
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import type { ComponentProps, ForwardedRef } from 'react';
|
import type { ComponentProps, ForwardedRef } from 'react';
|
||||||
import { forwardRef } from 'react';
|
import { forwardRef } from 'react';
|
||||||
import type { UseFormRegisterReturn } from 'react-hook-form';
|
import type { UseFormRegisterReturn } from 'react-hook-form';
|
||||||
import { TextArea } from '@tih/ui';
|
import { TextArea } from '~/ui';
|
||||||
|
|
||||||
type TextAreaProps = ComponentProps<typeof TextArea>;
|
type TextAreaProps = ComponentProps<typeof TextArea>;
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import type { ComponentProps, ForwardedRef } from 'react';
|
import type { ComponentProps, ForwardedRef } from 'react';
|
||||||
import { forwardRef } from 'react';
|
import { forwardRef } from 'react';
|
||||||
import type { UseFormRegisterReturn } from 'react-hook-form';
|
import type { UseFormRegisterReturn } from 'react-hook-form';
|
||||||
import { TextInput } from '@tih/ui';
|
import { TextInput } from '~/ui';
|
||||||
|
|
||||||
type TextInputProps = ComponentProps<typeof TextInput>;
|
type TextInputProps = ComponentProps<typeof TextInput>;
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import { useEffect } from 'react';
|
|||||||
import { useState } from 'react';
|
import { useState } from 'react';
|
||||||
import { ArrowUpRightIcon } from '@heroicons/react/24/outline';
|
import { ArrowUpRightIcon } from '@heroicons/react/24/outline';
|
||||||
import { JobType } from '@prisma/client';
|
import { JobType } from '@prisma/client';
|
||||||
import { Alert, Button, HorizontalDivider, Spinner, Tabs } from '@tih/ui';
|
import { Alert, Button, HorizontalDivider, Spinner, Tabs } from '~/ui';
|
||||||
|
|
||||||
import OfferPercentileAnalysisText from './OfferPercentileAnalysisText';
|
import OfferPercentileAnalysisText from './OfferPercentileAnalysisText';
|
||||||
import OfferProfileCard from './OfferProfileCard';
|
import OfferProfileCard from './OfferProfileCard';
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ import CompanyProfileImage from '~/components/shared/CompanyProfileImage';
|
|||||||
import type { JobTitleType } from '~/components/shared/JobTitles';
|
import type { JobTitleType } from '~/components/shared/JobTitles';
|
||||||
import { getLabelForJobTitleType } from '~/components/shared/JobTitles';
|
import { getLabelForJobTitleType } from '~/components/shared/JobTitles';
|
||||||
|
|
||||||
import { Button } from '~/../../../packages/ui/dist';
|
import { Button } from '~/ui';
|
||||||
import { convertMoneyToString } from '~/utils/offers/currency';
|
import { convertMoneyToString } from '~/utils/offers/currency';
|
||||||
import { formatDate } from '~/utils/offers/time';
|
import { formatDate } from '~/utils/offers/time';
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import type { UseQueryResult } from 'react-query';
|
|||||||
import { DocumentDuplicateIcon } from '@heroicons/react/20/solid';
|
import { DocumentDuplicateIcon } from '@heroicons/react/20/solid';
|
||||||
import { BookmarkIcon as BookmarkOutlineIcon } from '@heroicons/react/24/outline';
|
import { BookmarkIcon as BookmarkOutlineIcon } from '@heroicons/react/24/outline';
|
||||||
import { BookmarkIcon as BookmarkSolidIcon } from '@heroicons/react/24/solid';
|
import { BookmarkIcon as BookmarkSolidIcon } from '@heroicons/react/24/solid';
|
||||||
import { Button, TextInput, useToast } from '@tih/ui';
|
import { Button, TextInput, useToast } from '~/ui';
|
||||||
|
|
||||||
import { useGoogleAnalytics } from '~/components/global/GoogleAnalytics';
|
import { useGoogleAnalytics } from '~/components/global/GoogleAnalytics';
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import type { SubmitHandler } from 'react-hook-form';
|
|||||||
import { FormProvider, useForm } from 'react-hook-form';
|
import { FormProvider, useForm } from 'react-hook-form';
|
||||||
import { ArrowLeftIcon, ArrowRightIcon } from '@heroicons/react/20/solid';
|
import { ArrowLeftIcon, ArrowRightIcon } from '@heroicons/react/20/solid';
|
||||||
import { JobType } from '@prisma/client';
|
import { JobType } from '@prisma/client';
|
||||||
import { Button, Spinner, useToast } from '@tih/ui';
|
import { Button, Spinner, useToast } from '~/ui';
|
||||||
|
|
||||||
import { useGoogleAnalytics } from '~/components/global/GoogleAnalytics';
|
import { useGoogleAnalytics } from '~/components/global/GoogleAnalytics';
|
||||||
import type { BreadcrumbStep } from '~/components/offers/Breadcrumbs';
|
import type { BreadcrumbStep } from '~/components/offers/Breadcrumbs';
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { useFormContext, useWatch } from 'react-hook-form';
|
import { useFormContext, useWatch } from 'react-hook-form';
|
||||||
import { JobType } from '@prisma/client';
|
import { JobType } from '@prisma/client';
|
||||||
import { Collapsible, RadioList } from '@tih/ui';
|
import { Collapsible, RadioList } from '~/ui';
|
||||||
|
|
||||||
import { FieldError } from '~/components/offers/constants';
|
import { FieldError } from '~/components/offers/constants';
|
||||||
import type { BackgroundPostData } from '~/components/offers/types';
|
import type { BackgroundPostData } from '~/components/offers/types';
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ import { useFieldArray } from 'react-hook-form';
|
|||||||
import { PlusIcon } from '@heroicons/react/20/solid';
|
import { PlusIcon } from '@heroicons/react/20/solid';
|
||||||
import { TrashIcon } from '@heroicons/react/24/outline';
|
import { TrashIcon } from '@heroicons/react/24/outline';
|
||||||
import { JobType } from '@prisma/client';
|
import { JobType } from '@prisma/client';
|
||||||
import { Button, Dialog, HorizontalDivider } from '@tih/ui';
|
import { Button, Dialog, HorizontalDivider } from '~/ui';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
defaultFullTimeOfferValues,
|
defaultFullTimeOfferValues,
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { signIn, useSession } from 'next-auth/react';
|
import { signIn, useSession } from 'next-auth/react';
|
||||||
import { useState } from 'react';
|
import { useState } from 'react';
|
||||||
import { ClipboardDocumentIcon, ShareIcon } from '@heroicons/react/24/outline';
|
import { ClipboardDocumentIcon, ShareIcon } from '@heroicons/react/24/outline';
|
||||||
import { Button, Spinner, TextArea, useToast } from '@tih/ui';
|
import { Button, Spinner, TextArea, useToast } from '~/ui';
|
||||||
|
|
||||||
import { useGoogleAnalytics } from '~/components/global/GoogleAnalytics';
|
import { useGoogleAnalytics } from '~/components/global/GoogleAnalytics';
|
||||||
import ExpandableCommentCard from '~/components/offers/profile/comments/ExpandableCommentCard';
|
import ExpandableCommentCard from '~/components/offers/profile/comments/ExpandableCommentCard';
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import {
|
|||||||
ArrowPathIcon,
|
ArrowPathIcon,
|
||||||
BriefcaseIcon,
|
BriefcaseIcon,
|
||||||
} from '@heroicons/react/24/outline';
|
} from '@heroicons/react/24/outline';
|
||||||
import { Button, Spinner } from '@tih/ui';
|
import { Button, Spinner } from '~/ui';
|
||||||
|
|
||||||
import EducationCard from '~/components/offers/profile/EducationCard';
|
import EducationCard from '~/components/offers/profile/EducationCard';
|
||||||
import OfferCard from '~/components/offers/profile/OfferCard';
|
import OfferCard from '~/components/offers/profile/OfferCard';
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import {
|
|||||||
TrashIcon,
|
TrashIcon,
|
||||||
} from '@heroicons/react/24/outline';
|
} from '@heroicons/react/24/outline';
|
||||||
import { BookmarkIcon as BookmarkIconSolid } from '@heroicons/react/24/solid';
|
import { BookmarkIcon as BookmarkIconSolid } from '@heroicons/react/24/solid';
|
||||||
import { Button, Dialog, Spinner, Tabs, useToast } from '@tih/ui';
|
import { Button, Dialog, Spinner, Tabs, useToast } from '~/ui';
|
||||||
|
|
||||||
import { useGoogleAnalytics } from '~/components/global/GoogleAnalytics';
|
import { useGoogleAnalytics } from '~/components/global/GoogleAnalytics';
|
||||||
import type { ProfileDetailTab } from '~/components/offers/constants';
|
import type { ProfileDetailTab } from '~/components/offers/constants';
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { formatDistanceToNow } from 'date-fns';
|
import { formatDistanceToNow } from 'date-fns';
|
||||||
import { signIn, useSession } from 'next-auth/react';
|
import { signIn, useSession } from 'next-auth/react';
|
||||||
import { useState } from 'react';
|
import { useState } from 'react';
|
||||||
import { Button, Dialog, TextArea, useToast } from '@tih/ui';
|
import { Button, Dialog, TextArea, useToast } from '~/ui';
|
||||||
|
|
||||||
import ProfilePhotoHolder from '~/components/offers/profile/ProfilePhotoHolder';
|
import ProfilePhotoHolder from '~/components/offers/profile/ProfilePhotoHolder';
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { useRouter } from 'next/router';
|
import { useRouter } from 'next/router';
|
||||||
import { useEffect, useMemo, useRef, useState } from 'react';
|
import { useEffect, useMemo, useRef, useState } from 'react';
|
||||||
import { JobType } from '@prisma/client';
|
import { JobType } from '@prisma/client';
|
||||||
import { DropdownMenu, Spinner, useToast } from '@tih/ui';
|
import { DropdownMenu, Spinner, useToast } from '~/ui';
|
||||||
|
|
||||||
import { useGoogleAnalytics } from '~/components/global/GoogleAnalytics';
|
import { useGoogleAnalytics } from '~/components/global/GoogleAnalytics';
|
||||||
import OffersRow from '~/components/offers/table//OffersRow';
|
import OffersRow from '~/components/offers/table//OffersRow';
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { useEffect, useState } from 'react';
|
import { useEffect, useState } from 'react';
|
||||||
import { Pagination, Spinner } from '@tih/ui';
|
import { Pagination, Spinner } from '~/ui';
|
||||||
|
|
||||||
import type { Paging } from '~/types/offers';
|
import type { Paging } from '~/types/offers';
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { Fragment, useState } from 'react';
|
import { Fragment, useState } from 'react';
|
||||||
import { Dialog, Transition } from '@headlessui/react';
|
import { Dialog, Transition } from '@headlessui/react';
|
||||||
import { HorizontalDivider, useToast } from '@tih/ui';
|
import { HorizontalDivider, useToast } from '~/ui';
|
||||||
|
|
||||||
import DiscardDraftDialog from './DiscardDraftDialog';
|
import DiscardDraftDialog from './DiscardDraftDialog';
|
||||||
import type { ContributeQuestionFormProps } from './forms/ContributeQuestionForm';
|
import type { ContributeQuestionFormProps } from './forms/ContributeQuestionForm';
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { useForm } from 'react-hook-form';
|
import { useForm } from 'react-hook-form';
|
||||||
import { Button, Dialog, TextInput } from '@tih/ui';
|
import { Button, Dialog, TextInput } from '~/ui';
|
||||||
|
|
||||||
import { useFormRegister } from '~/utils/questions/useFormRegister';
|
import { useFormRegister } from '~/utils/questions/useFormRegister';
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Button, Dialog } from '@tih/ui';
|
import { Button, Dialog } from '~/ui';
|
||||||
|
|
||||||
export type DeleteListDialogProps = {
|
export type DeleteListDialogProps = {
|
||||||
onCancel: () => void;
|
onCancel: () => void;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Button, Dialog } from '@tih/ui';
|
import { Button, Dialog } from '~/ui';
|
||||||
|
|
||||||
export type DiscardDraftDialogProps = {
|
export type DiscardDraftDialogProps = {
|
||||||
onCancel: () => void;
|
onCancel: () => void;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Spinner } from '@tih/ui';
|
import { Spinner } from '~/ui';
|
||||||
|
|
||||||
export default function FullScreenSpinner() {
|
export default function FullScreenSpinner() {
|
||||||
return (
|
return (
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
import { useEffect, useState } from 'react';
|
import { useEffect, useState } from 'react';
|
||||||
import { ArrowSmallRightIcon } from '@heroicons/react/24/outline';
|
import { ArrowSmallRightIcon } from '@heroicons/react/24/outline';
|
||||||
import type { QuestionsQuestionType } from '@prisma/client';
|
import type { QuestionsQuestionType } from '@prisma/client';
|
||||||
import type { TypeaheadOption } from '@tih/ui';
|
import type { TypeaheadOption } from '~/ui';
|
||||||
import { Button, Select } from '@tih/ui';
|
import { Button, Select } from '~/ui';
|
||||||
|
|
||||||
import Container from '~/components/shared/Container';
|
import Container from '~/components/shared/Container';
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import type { UseInfiniteQueryResult } from 'react-query';
|
import type { UseInfiniteQueryResult } from 'react-query';
|
||||||
import { Button } from '@tih/ui';
|
import { Button } from '~/ui';
|
||||||
|
|
||||||
export type PaginationLoadMoreButtonProps = {
|
export type PaginationLoadMoreButtonProps = {
|
||||||
query: UseInfiniteQueryResult;
|
query: UseInfiniteQueryResult;
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import {
|
|||||||
AdjustmentsHorizontalIcon,
|
AdjustmentsHorizontalIcon,
|
||||||
MagnifyingGlassIcon,
|
MagnifyingGlassIcon,
|
||||||
} from '@heroicons/react/24/outline';
|
} from '@heroicons/react/24/outline';
|
||||||
import { Button, Tabs, TextInput } from '@tih/ui';
|
import { Button, Tabs, TextInput } from '~/ui';
|
||||||
|
|
||||||
import { SORT_ORDERS } from '~/utils/questions/constants';
|
import { SORT_ORDERS } from '~/utils/questions/constants';
|
||||||
|
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ import {
|
|||||||
WrenchIcon,
|
WrenchIcon,
|
||||||
} from '@heroicons/react/20/solid';
|
} from '@heroicons/react/20/solid';
|
||||||
import type { QuestionsQuestionType } from '@prisma/client';
|
import type { QuestionsQuestionType } from '@prisma/client';
|
||||||
import type { BadgeVariant } from '@tih/ui';
|
import type { BadgeVariant } from '~/ui';
|
||||||
import { Badge } from '@tih/ui';
|
import { Badge } from '~/ui';
|
||||||
|
|
||||||
import { QUESTION_TYPES } from '~/utils/questions/constants';
|
import { QUESTION_TYPES } from '~/utils/questions/constants';
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Select } from '~/../../../packages/ui/dist';
|
import { Select } from '~/ui';
|
||||||
import { SORT_ORDERS, SORT_TYPES } from '~/utils/questions/constants';
|
import { SORT_ORDERS, SORT_TYPES } from '~/utils/questions/constants';
|
||||||
|
|
||||||
import type { SortOrder, SortType } from '~/types/questions.d';
|
import type { SortOrder, SortType } from '~/types/questions.d';
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ import {
|
|||||||
TrashIcon,
|
TrashIcon,
|
||||||
} from '@heroicons/react/24/outline';
|
} from '@heroicons/react/24/outline';
|
||||||
import type { QuestionsQuestionType } from '@prisma/client';
|
import type { QuestionsQuestionType } from '@prisma/client';
|
||||||
import { Button } from '@tih/ui';
|
import { Button } from '~/ui';
|
||||||
|
|
||||||
import { useProtectedCallback } from '~/utils/questions/useProtectedCallback';
|
import { useProtectedCallback } from '~/utils/questions/useProtectedCallback';
|
||||||
import { useQuestionVote } from '~/utils/questions/vote/useQuestionVote';
|
import { useQuestionVote } from '~/utils/questions/vote/useQuestionVote';
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { useMemo } from 'react';
|
import { useMemo } from 'react';
|
||||||
import type { UseFormRegisterReturn } from 'react-hook-form';
|
import type { UseFormRegisterReturn } from 'react-hook-form';
|
||||||
import { useForm } from 'react-hook-form';
|
import { useForm } from 'react-hook-form';
|
||||||
import { CheckboxInput, CheckboxList, Collapsible, RadioList } from '@tih/ui';
|
import { CheckboxInput, CheckboxList, Collapsible, RadioList } from '~/ui';
|
||||||
|
|
||||||
export type FilterChoice<V extends string = string> = {
|
export type FilterChoice<V extends string = string> = {
|
||||||
id: string;
|
id: string;
|
||||||
|
|||||||
@@ -3,9 +3,9 @@ import { useEffect, useState } from 'react';
|
|||||||
import { Controller, useForm } from 'react-hook-form';
|
import { Controller, useForm } from 'react-hook-form';
|
||||||
import { ArrowPathIcon } from '@heroicons/react/20/solid';
|
import { ArrowPathIcon } from '@heroicons/react/20/solid';
|
||||||
import type { QuestionsQuestionType } from '@prisma/client';
|
import type { QuestionsQuestionType } from '@prisma/client';
|
||||||
import type { TypeaheadOption } from '@tih/ui';
|
import type { TypeaheadOption } from '~/ui';
|
||||||
import { CheckboxInput } from '@tih/ui';
|
import { CheckboxInput } from '~/ui';
|
||||||
import { Button, Select, TextArea } from '@tih/ui';
|
import { Button, Select, TextArea } from '~/ui';
|
||||||
|
|
||||||
import { QUESTION_TYPES } from '~/utils/questions/constants';
|
import { QUESTION_TYPES } from '~/utils/questions/constants';
|
||||||
import relabelQuestionAggregates from '~/utils/questions/relabelQuestionAggregates';
|
import relabelQuestionAggregates from '~/utils/questions/relabelQuestionAggregates';
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { startOfMonth } from 'date-fns';
|
import { startOfMonth } from 'date-fns';
|
||||||
import { useState } from 'react';
|
import { useState } from 'react';
|
||||||
import { CheckIcon } from '@heroicons/react/20/solid';
|
import { CheckIcon } from '@heroicons/react/20/solid';
|
||||||
import { Button } from '@tih/ui';
|
import { Button } from '~/ui';
|
||||||
|
|
||||||
import type { Month } from '~/components/shared/MonthYearPicker';
|
import type { Month } from '~/components/shared/MonthYearPicker';
|
||||||
import MonthYearPicker from '~/components/shared/MonthYearPicker';
|
import MonthYearPicker from '~/components/shared/MonthYearPicker';
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import type { PropsWithChildren } from 'react';
|
import type { PropsWithChildren } from 'react';
|
||||||
import { ArrowSmallLeftIcon } from '@heroicons/react/24/outline';
|
import { ArrowSmallLeftIcon } from '@heroicons/react/24/outline';
|
||||||
import { Button } from '@tih/ui';
|
import { Button } from '~/ui';
|
||||||
|
|
||||||
import Container from '~/components/shared/Container';
|
import Container from '~/components/shared/Container';
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { signIn } from 'next-auth/react';
|
import { signIn } from 'next-auth/react';
|
||||||
import { Button, Dialog } from '@tih/ui';
|
import { Button, Dialog } from '~/ui';
|
||||||
|
|
||||||
export type ProtectedDialogProps = {
|
export type ProtectedDialogProps = {
|
||||||
onClose: () => void;
|
onClose: () => void;
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import type { ComponentProps } from 'react';
|
import type { ComponentProps } from 'react';
|
||||||
import { useState } from 'react';
|
import { useState } from 'react';
|
||||||
import { useMemo } from 'react';
|
import { useMemo } from 'react';
|
||||||
import { Button, Typeahead } from '@tih/ui';
|
import { Button, Typeahead } from '~/ui';
|
||||||
|
|
||||||
import type { RequireAllOrNone } from '~/utils/questions/RequireAllOrNone';
|
import type { RequireAllOrNone } from '~/utils/questions/RequireAllOrNone';
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { useState } from 'react';
|
import { useState } from 'react';
|
||||||
import type { TypeaheadOption } from '@tih/ui';
|
import type { TypeaheadOption } from '~/ui';
|
||||||
|
|
||||||
import useLocationOptions from '~/utils/questions/useLocationOptions';
|
import useLocationOptions from '~/utils/questions/useLocationOptions';
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,8 @@ import {
|
|||||||
MagnifyingGlassMinusIcon,
|
MagnifyingGlassMinusIcon,
|
||||||
MagnifyingGlassPlusIcon,
|
MagnifyingGlassPlusIcon,
|
||||||
} from '@heroicons/react/20/solid';
|
} from '@heroicons/react/20/solid';
|
||||||
import { Button, Pagination, Spinner } from '@tih/ui';
|
|
||||||
|
import { Button, Pagination, Spinner } from '~/ui';
|
||||||
|
|
||||||
pdfjs.GlobalWorkerOptions.workerSrc = `//unpkg.com/pdfjs-dist@${pdfjs.version}/build/pdf.worker.min.js`;
|
pdfjs.GlobalWorkerOptions.workerSrc = `//unpkg.com/pdfjs-dist@${pdfjs.version}/build/pdf.worker.min.js`;
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { useState } from 'react';
|
import { useState } from 'react';
|
||||||
import type { SubmitHandler } from 'react-hook-form';
|
import type { SubmitHandler } from 'react-hook-form';
|
||||||
import { useForm } from 'react-hook-form';
|
import { useForm } from 'react-hook-form';
|
||||||
import { Button, Dialog, TextArea } from '@tih/ui';
|
import { Button, Dialog, TextArea } from '~/ui';
|
||||||
|
|
||||||
import { useGoogleAnalytics } from '~/components/global/GoogleAnalytics';
|
import { useGoogleAnalytics } from '~/components/global/GoogleAnalytics';
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import {
|
|||||||
SparklesIcon,
|
SparklesIcon,
|
||||||
} from '@heroicons/react/24/outline';
|
} from '@heroicons/react/24/outline';
|
||||||
import { ResumesSection } from '@prisma/client';
|
import { ResumesSection } from '@prisma/client';
|
||||||
import { Spinner } from '@tih/ui';
|
import { Spinner } from '~/ui';
|
||||||
|
|
||||||
import { trpc } from '~/utils/trpc';
|
import { trpc } from '~/utils/trpc';
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Button, Dialog } from '@tih/ui';
|
import { Button, Dialog } from '~/ui';
|
||||||
|
|
||||||
import { useGoogleAnalytics } from '~/components/global/GoogleAnalytics';
|
import { useGoogleAnalytics } from '~/components/global/GoogleAnalytics';
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import type { SubmitHandler } from 'react-hook-form';
|
import type { SubmitHandler } from 'react-hook-form';
|
||||||
import { useForm } from 'react-hook-form';
|
import { useForm } from 'react-hook-form';
|
||||||
import { Button, TextArea } from '@tih/ui';
|
import { Button, TextArea } from '~/ui';
|
||||||
|
|
||||||
import { trpc } from '~/utils/trpc';
|
import { trpc } from '~/utils/trpc';
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import type { SubmitHandler } from 'react-hook-form';
|
import type { SubmitHandler } from 'react-hook-form';
|
||||||
import { useForm } from 'react-hook-form';
|
import { useForm } from 'react-hook-form';
|
||||||
import type { ResumesSection } from '@prisma/client';
|
import type { ResumesSection } from '@prisma/client';
|
||||||
import { Button, TextArea } from '@tih/ui';
|
import { Button, TextArea } from '~/ui';
|
||||||
|
|
||||||
import { useGoogleAnalytics } from '~/components/global/GoogleAnalytics';
|
import { useGoogleAnalytics } from '~/components/global/GoogleAnalytics';
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Button } from '@tih/ui';
|
import { Button } from '~/ui';
|
||||||
|
|
||||||
import { Container } from './Container';
|
import { Container } from './Container';
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import type { ComponentProps } from 'react';
|
import type { ComponentProps } from 'react';
|
||||||
import { useState } from 'react';
|
import { useState } from 'react';
|
||||||
import type { TypeaheadOption } from '@tih/ui';
|
import type { TypeaheadOption } from '~/ui';
|
||||||
import { Typeahead } from '@tih/ui';
|
import { Typeahead } from '~/ui';
|
||||||
|
|
||||||
import { EXPERIENCES } from '~/utils/resumes/resumeFilters';
|
import { EXPERIENCES } from '~/utils/resumes/resumeFilters';
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import type { ComponentProps } from 'react';
|
import type { ComponentProps } from 'react';
|
||||||
import { useState } from 'react';
|
import { useState } from 'react';
|
||||||
import type { TypeaheadOption } from '@tih/ui';
|
import type { TypeaheadOption } from '~/ui';
|
||||||
import { Typeahead } from '@tih/ui';
|
import { Typeahead } from '~/ui';
|
||||||
|
|
||||||
import { trpc } from '~/utils/trpc';
|
import { trpc } from '~/utils/trpc';
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import type { ComponentProps } from 'react';
|
import type { ComponentProps } from 'react';
|
||||||
import { useState } from 'react';
|
import { useState } from 'react';
|
||||||
import type { TypeaheadOption } from '@tih/ui';
|
import type { TypeaheadOption } from '~/ui';
|
||||||
import { Typeahead } from '@tih/ui';
|
import { Typeahead } from '~/ui';
|
||||||
|
|
||||||
import useCompanyOptions from '~/utils/shared/useCompanyOptions';
|
import useCompanyOptions from '~/utils/shared/useCompanyOptions';
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import type { ComponentProps } from 'react';
|
import type { ComponentProps } from 'react';
|
||||||
import { useState } from 'react';
|
import { useState } from 'react';
|
||||||
import type { TypeaheadOption } from '@tih/ui';
|
import type { TypeaheadOption } from '~/ui';
|
||||||
import { Typeahead } from '@tih/ui';
|
import { Typeahead } from '~/ui';
|
||||||
|
|
||||||
import useCountryOptions from '~/utils/shared/useCountryOptions';
|
import useCountryOptions from '~/utils/shared/useCountryOptions';
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import type { ComponentProps } from 'react';
|
import type { ComponentProps } from 'react';
|
||||||
import { useState } from 'react';
|
import { useState } from 'react';
|
||||||
import type { TypeaheadOption } from '@tih/ui';
|
import type { TypeaheadOption } from '~/ui';
|
||||||
import { Typeahead } from '@tih/ui';
|
import { Typeahead } from '~/ui';
|
||||||
|
|
||||||
import useJobTitleOptions from '~/utils/shared/useJobTitleOptions';
|
import useJobTitleOptions from '~/utils/shared/useJobTitleOptions';
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import clsx from 'clsx';
|
import clsx from 'clsx';
|
||||||
import { useEffect, useId, useState } from 'react';
|
import { useEffect, useId, useState } from 'react';
|
||||||
import { Select } from '@tih/ui';
|
import { Select } from '~/ui';
|
||||||
|
|
||||||
export type Month = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
export type Month = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import type { Session } from 'next-auth';
|
|||||||
import { SessionProvider } from 'next-auth/react';
|
import { SessionProvider } from 'next-auth/react';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import superjson from 'superjson';
|
import superjson from 'superjson';
|
||||||
import { ToastsProvider } from '@tih/ui';
|
import { ToastsProvider } from '~/ui';
|
||||||
import { httpBatchLink } from '@trpc/client/links/httpBatchLink';
|
import { httpBatchLink } from '@trpc/client/links/httpBatchLink';
|
||||||
import { loggerLink } from '@trpc/client/links/loggerLink';
|
import { loggerLink } from '@trpc/client/links/loggerLink';
|
||||||
import { withTRPC } from '@trpc/next';
|
import { withTRPC } from '@trpc/next';
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import Head from 'next/head';
|
import Head from 'next/head';
|
||||||
import { Button } from '@tih/ui';
|
import { Button } from '~/ui';
|
||||||
|
|
||||||
import Container from '~/components/shared/Container';
|
import Container from '~/components/shared/Container';
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import type {
|
|||||||
InferGetServerSidePropsType,
|
InferGetServerSidePropsType,
|
||||||
} from 'next/types';
|
} from 'next/types';
|
||||||
import { getProviders, signIn } from 'next-auth/react';
|
import { getProviders, signIn } from 'next-auth/react';
|
||||||
import { Button } from '@tih/ui';
|
import { Button } from '~/ui';
|
||||||
|
|
||||||
import GitHubIcon from '~/components/shared/icons/GitHubIcon';
|
import GitHubIcon from '~/components/shared/icons/GitHubIcon';
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import Link from 'next/link';
|
|||||||
import { useRouter } from 'next/router';
|
import { useRouter } from 'next/router';
|
||||||
import { useState } from 'react';
|
import { useState } from 'react';
|
||||||
import { MapPinIcon } from '@heroicons/react/24/outline';
|
import { MapPinIcon } from '@heroicons/react/24/outline';
|
||||||
import { Banner, Spinner } from '@tih/ui';
|
import { Banner, Spinner } from '~/ui';
|
||||||
|
|
||||||
import { useGoogleAnalytics } from '~/components/global/GoogleAnalytics';
|
import { useGoogleAnalytics } from '~/components/global/GoogleAnalytics';
|
||||||
import OffersTable from '~/components/offers/admin/OffersTable';
|
import OffersTable from '~/components/offers/admin/OffersTable';
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import Head from 'next/head';
|
|||||||
import { useRouter } from 'next/router';
|
import { useRouter } from 'next/router';
|
||||||
import { signIn, useSession } from 'next-auth/react';
|
import { signIn, useSession } from 'next-auth/react';
|
||||||
import { useState } from 'react';
|
import { useState } from 'react';
|
||||||
import { Button, Spinner } from '@tih/ui';
|
import { Button, Spinner } from '~/ui';
|
||||||
|
|
||||||
import DashboardProfileCard from '~/components/offers/dashboard/DashboardProfileCard';
|
import DashboardProfileCard from '~/components/offers/dashboard/DashboardProfileCard';
|
||||||
import Container from '~/components/shared/Container';
|
import Container from '~/components/shared/Container';
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import Head from 'next/head';
|
|||||||
import Link from 'next/link';
|
import Link from 'next/link';
|
||||||
import { useState } from 'react';
|
import { useState } from 'react';
|
||||||
import { MapPinIcon } from '@heroicons/react/24/outline';
|
import { MapPinIcon } from '@heroicons/react/24/outline';
|
||||||
import { Banner } from '@tih/ui';
|
import { Banner } from '~/ui';
|
||||||
|
|
||||||
import { useGoogleAnalytics } from '~/components/global/GoogleAnalytics';
|
import { useGoogleAnalytics } from '~/components/global/GoogleAnalytics';
|
||||||
import OffersTable from '~/components/offers/table/OffersTable';
|
import OffersTable from '~/components/offers/table/OffersTable';
|
||||||
|
|||||||
@@ -3,7 +3,6 @@ import Head from 'next/head';
|
|||||||
import { useRouter } from 'next/router';
|
import { useRouter } from 'next/router';
|
||||||
import { useSession } from 'next-auth/react';
|
import { useSession } from 'next-auth/react';
|
||||||
import { useState } from 'react';
|
import { useState } from 'react';
|
||||||
import { Spinner, useToast } from '@tih/ui';
|
|
||||||
|
|
||||||
import { useGoogleAnalytics } from '~/components/global/GoogleAnalytics';
|
import { useGoogleAnalytics } from '~/components/global/GoogleAnalytics';
|
||||||
import { ProfileDetailTab } from '~/components/offers/constants';
|
import { ProfileDetailTab } from '~/components/offers/constants';
|
||||||
@@ -18,6 +17,7 @@ import type {
|
|||||||
import type { JobTitleType } from '~/components/shared/JobTitles';
|
import type { JobTitleType } from '~/components/shared/JobTitles';
|
||||||
import { getLabelForJobTitleType } from '~/components/shared/JobTitles';
|
import { getLabelForJobTitleType } from '~/components/shared/JobTitles';
|
||||||
|
|
||||||
|
import { Spinner, useToast } from '~/ui';
|
||||||
import { convertMoneyToString } from '~/utils/offers/currency';
|
import { convertMoneyToString } from '~/utils/offers/currency';
|
||||||
import { getProfilePath } from '~/utils/offers/link';
|
import { getProfilePath } from '~/utils/offers/link';
|
||||||
import { formatDate } from '~/utils/offers/time';
|
import { formatDate } from '~/utils/offers/time';
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import OffersSubmissionForm, {
|
|||||||
} from '~/components/offers/offersSubmission/OffersSubmissionForm';
|
} from '~/components/offers/offersSubmission/OffersSubmissionForm';
|
||||||
import type { OffersProfileFormData } from '~/components/offers/types';
|
import type { OffersProfileFormData } from '~/components/offers/types';
|
||||||
|
|
||||||
import { Spinner } from '~/../../../packages/ui/dist';
|
import { Spinner } from '~/ui';
|
||||||
import { getProfilePath } from '~/utils/offers/link';
|
import { getProfilePath } from '~/utils/offers/link';
|
||||||
import { convertToMonthYear } from '~/utils/offers/time';
|
import { convertToMonthYear } from '~/utils/offers/time';
|
||||||
import { trpc } from '~/utils/trpc';
|
import { trpc } from '~/utils/trpc';
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import { useSession } from 'next-auth/react';
|
|||||||
import { useEffect, useRef, useState } from 'react';
|
import { useEffect, useRef, useState } from 'react';
|
||||||
import { ArrowLeftIcon, ArrowRightIcon } from '@heroicons/react/20/solid';
|
import { ArrowLeftIcon, ArrowRightIcon } from '@heroicons/react/20/solid';
|
||||||
import { EyeIcon } from '@heroicons/react/24/outline';
|
import { EyeIcon } from '@heroicons/react/24/outline';
|
||||||
import { Button, Spinner } from '@tih/ui';
|
import { Button, Spinner } from '~/ui';
|
||||||
|
|
||||||
import type { BreadcrumbStep } from '~/components/offers/Breadcrumbs';
|
import type { BreadcrumbStep } from '~/components/offers/Breadcrumbs';
|
||||||
import { Breadcrumbs } from '~/components/offers/Breadcrumbs';
|
import { Breadcrumbs } from '~/components/offers/Breadcrumbs';
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import Head from 'next/head';
|
|||||||
import { useRouter } from 'next/router';
|
import { useRouter } from 'next/router';
|
||||||
import { useState } from 'react';
|
import { useState } from 'react';
|
||||||
import { useForm } from 'react-hook-form';
|
import { useForm } from 'react-hook-form';
|
||||||
import { Button, TextArea } from '@tih/ui';
|
import { Button, TextArea } from '~/ui';
|
||||||
|
|
||||||
import { useGoogleAnalytics } from '~/components/global/GoogleAnalytics';
|
import { useGoogleAnalytics } from '~/components/global/GoogleAnalytics';
|
||||||
import FullAnswerCard from '~/components/questions/card/FullAnswerCard';
|
import FullAnswerCard from '~/components/questions/card/FullAnswerCard';
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import Head from 'next/head';
|
|||||||
import { useRouter } from 'next/router';
|
import { useRouter } from 'next/router';
|
||||||
import { useMemo, useState } from 'react';
|
import { useMemo, useState } from 'react';
|
||||||
import { useForm } from 'react-hook-form';
|
import { useForm } from 'react-hook-form';
|
||||||
import { Button, Collapsible, HorizontalDivider, TextArea } from '@tih/ui';
|
import { Button, Collapsible, HorizontalDivider, TextArea } from '~/ui';
|
||||||
|
|
||||||
import { useGoogleAnalytics } from '~/components/global/GoogleAnalytics';
|
import { useGoogleAnalytics } from '~/components/global/GoogleAnalytics';
|
||||||
import FullQuestionCard from '~/components/questions/card/question/FullQuestionCard';
|
import FullQuestionCard from '~/components/questions/card/question/FullQuestionCard';
|
||||||
|
|||||||
@@ -5,9 +5,9 @@ import { useEffect, useMemo, useState } from 'react';
|
|||||||
import { Bars3BottomLeftIcon } from '@heroicons/react/20/solid';
|
import { Bars3BottomLeftIcon } from '@heroicons/react/20/solid';
|
||||||
import { NoSymbolIcon } from '@heroicons/react/24/outline';
|
import { NoSymbolIcon } from '@heroicons/react/24/outline';
|
||||||
import type { QuestionsQuestionType } from '@prisma/client';
|
import type { QuestionsQuestionType } from '@prisma/client';
|
||||||
import type { TypeaheadOption } from '@tih/ui';
|
import type { TypeaheadOption } from '~/ui';
|
||||||
import { useToast } from '@tih/ui';
|
import { useToast } from '~/ui';
|
||||||
import { Button, SlideOut } from '@tih/ui';
|
import { Button, SlideOut } from '~/ui';
|
||||||
|
|
||||||
import { useGoogleAnalytics } from '~/components/global/GoogleAnalytics';
|
import { useGoogleAnalytics } from '~/components/global/GoogleAnalytics';
|
||||||
import QuestionOverviewCard from '~/components/questions/card/question/QuestionOverviewCard';
|
import QuestionOverviewCard from '~/components/questions/card/question/QuestionOverviewCard';
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import {
|
|||||||
PlusIcon,
|
PlusIcon,
|
||||||
TrashIcon,
|
TrashIcon,
|
||||||
} from '@heroicons/react/24/outline';
|
} from '@heroicons/react/24/outline';
|
||||||
import { Button, Select } from '@tih/ui';
|
import { Button, Select } from '~/ui';
|
||||||
|
|
||||||
import QuestionListCard from '~/components/questions/card/question/QuestionListCard';
|
import QuestionListCard from '~/components/questions/card/question/QuestionListCard';
|
||||||
import type { CreateListFormData } from '~/components/questions/CreateListDialog';
|
import type { CreateListFormData } from '~/components/questions/CreateListDialog';
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ import {
|
|||||||
StarIcon,
|
StarIcon,
|
||||||
TrashIcon,
|
TrashIcon,
|
||||||
} from '@heroicons/react/20/solid';
|
} from '@heroicons/react/20/solid';
|
||||||
import { Button, Dialog, Spinner } from '@tih/ui';
|
import { Button, Dialog, Spinner } from '~/ui';
|
||||||
|
|
||||||
import { useGoogleAnalytics } from '~/components/global/GoogleAnalytics';
|
import { useGoogleAnalytics } from '~/components/global/GoogleAnalytics';
|
||||||
import ResumeCommentsForm from '~/components/resumes/comments/ResumeCommentsForm';
|
import ResumeCommentsForm from '~/components/resumes/comments/ResumeCommentsForm';
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import {
|
|||||||
NewspaperIcon,
|
NewspaperIcon,
|
||||||
XMarkIcon,
|
XMarkIcon,
|
||||||
} from '@heroicons/react/24/outline';
|
} from '@heroicons/react/24/outline';
|
||||||
import type { TypeaheadOption } from '@tih/ui';
|
import type { TypeaheadOption } from '~/ui';
|
||||||
import {
|
import {
|
||||||
Button,
|
Button,
|
||||||
CheckboxInput,
|
CheckboxInput,
|
||||||
@@ -19,7 +19,7 @@ import {
|
|||||||
Spinner,
|
Spinner,
|
||||||
Tabs,
|
Tabs,
|
||||||
TextInput,
|
TextInput,
|
||||||
} from '@tih/ui';
|
} from '~/ui';
|
||||||
|
|
||||||
import { useGoogleAnalytics } from '~/components/global/GoogleAnalytics';
|
import { useGoogleAnalytics } from '~/components/global/GoogleAnalytics';
|
||||||
import ResumeFilterPill from '~/components/resumes/browse/ResumeFilterPill';
|
import ResumeFilterPill from '~/components/resumes/browse/ResumeFilterPill';
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import { useDropzone } from 'react-dropzone';
|
|||||||
import type { SubmitHandler } from 'react-hook-form';
|
import type { SubmitHandler } from 'react-hook-form';
|
||||||
import { Controller, useForm } from 'react-hook-form';
|
import { Controller, useForm } from 'react-hook-form';
|
||||||
import { ArrowUpCircleIcon } from '@heroicons/react/24/outline';
|
import { ArrowUpCircleIcon } from '@heroicons/react/24/outline';
|
||||||
import type { TypeaheadOption } from '@tih/ui';
|
import type { TypeaheadOption } from '~/ui';
|
||||||
import {
|
import {
|
||||||
Button,
|
Button,
|
||||||
CheckboxInput,
|
CheckboxInput,
|
||||||
@@ -18,7 +18,7 @@ import {
|
|||||||
Spinner,
|
Spinner,
|
||||||
TextArea,
|
TextArea,
|
||||||
TextInput,
|
TextInput,
|
||||||
} from '@tih/ui';
|
} from '~/ui';
|
||||||
|
|
||||||
import { useGoogleAnalytics } from '~/components/global/GoogleAnalytics';
|
import { useGoogleAnalytics } from '~/components/global/GoogleAnalytics';
|
||||||
import ResumeSubmissionGuidelines from '~/components/resumes/submit-form/ResumeSubmissionGuidelines';
|
import ResumeSubmissionGuidelines from '~/components/resumes/submit-form/ResumeSubmissionGuidelines';
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import Head from 'next/head';
|
|||||||
import type { Session } from 'next-auth';
|
import type { Session } from 'next-auth';
|
||||||
import { useSession } from 'next-auth/react';
|
import { useSession } from 'next-auth/react';
|
||||||
import { useState } from 'react';
|
import { useState } from 'react';
|
||||||
import { Button, HorizontalDivider, TextInput, useToast } from '@tih/ui';
|
import { Button, HorizontalDivider, TextInput, useToast } from '~/ui';
|
||||||
|
|
||||||
import Container from '~/components/shared/Container';
|
import Container from '~/components/shared/Container';
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
import { useState } from 'react';
|
import { useState } from 'react';
|
||||||
import type { TypeaheadOption } from '@tih/ui';
|
import type { TypeaheadOption } from '~/ui';
|
||||||
import { Button } from '@tih/ui';
|
import { Button } from '~/ui';
|
||||||
import { useToast } from '@tih/ui';
|
import { useToast } from '~/ui';
|
||||||
import { HorizontalDivider } from '@tih/ui';
|
import { HorizontalDivider } from '~/ui';
|
||||||
|
|
||||||
import CitiesTypeahead from '~/components/shared/CitiesTypeahead';
|
import CitiesTypeahead from '~/components/shared/CitiesTypeahead';
|
||||||
import CompaniesTypeahead from '~/components/shared/CompaniesTypeahead';
|
import CompaniesTypeahead from '~/components/shared/CompaniesTypeahead';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Select } from '@tih/ui';
|
import { Select } from '~/ui';
|
||||||
|
|
||||||
import { Currency } from '~/utils/offers/currency/CurrencyEnum';
|
import { Currency } from '~/utils/offers/currency/CurrencyEnum';
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import type { TypeaheadOption } from '@tih/ui';
|
import type { TypeaheadOption } from '~/ui';
|
||||||
|
|
||||||
import type { Location } from '~/types/questions';
|
import type { Location } from '~/types/questions';
|
||||||
|
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user