[offers][refactor] Refactor the sorting to use prisma's WHERE api

This commit is contained in:
Bryann Yeap Kok Keong
2022-10-21 23:12:55 +08:00
parent 8b8fffdab1
commit 2729e20351
3 changed files with 103 additions and 68 deletions

View File

@@ -9,13 +9,13 @@ import {
YOE_CATEGORY,
} from '~/components/offers/table/types';
import { Currency } from '~/utils/offers/currency/CurrencyEnum';
import CurrencySelector from '~/utils/offers/currency/CurrencySelector';
import { trpc } from '~/utils/trpc';
import OffersRow from './OffersRow';
import type { DashboardOffer, GetOffersResponse, Paging } from '~/types/offers';
import { Currency } from '~/utils/offers/currency/CurrencyEnum';
const NUMBER_OF_OFFERS_IN_PAGE = 10;
export type OffersTableProps = Readonly<{