- Click into offers to view profiles, benchmark your offers and profiles,
- and discuss with the community
-
- >
- );
-}
diff --git a/apps/portal/src/components/offers/table/OffersRow.tsx b/apps/portal/src/components/offers/table/OffersRow.tsx
index 1f4d8856..dbde12a8 100644
--- a/apps/portal/src/components/offers/table/OffersRow.tsx
+++ b/apps/portal/src/components/offers/table/OffersRow.tsx
@@ -1,3 +1,4 @@
+import clsx from 'clsx';
import Link from 'next/link';
import type { JobTitleType } from '~/components/shared/JobTitles';
@@ -14,12 +15,8 @@ export default function OfferTableRow({
row: { company, id, income, monthYearReceived, profileId, title, totalYoe },
}: OfferTableRowProps) {
return (
-
+
{company.name}
|
@@ -28,7 +25,10 @@ export default function OfferTableRow({
| {totalYoe} |
{convertMoneyToString(income)} |
{formatDate(monthYearReceived)} |
-
+ |
diff --git a/apps/portal/src/components/offers/table/OffersTable.tsx b/apps/portal/src/components/offers/table/OffersTable.tsx
index 3801d7b0..4ce1e0f9 100644
--- a/apps/portal/src/components/offers/table/OffersTable.tsx
+++ b/apps/portal/src/components/offers/table/OffersTable.tsx
@@ -1,5 +1,6 @@
+import clsx from 'clsx';
import { useEffect, useState } from 'react';
-import { HorizontalDivider, Select, Spinner, Tabs } from '@tih/ui';
+import { DropdownMenu, Spinner } from '@tih/ui';
import OffersTablePagination from '~/components/offers/table/OffersTablePagination';
import {
@@ -71,55 +72,84 @@ export default function OffersTable({
},
);
- function renderTabs() {
- return (
-
-
- setSelectedTab(value)}
- />
-
-
- );
- }
-
function renderFilters() {
return (
-
- All offers in
- setCurrency(value)}
- selectedCurrency={currency}
- />
+ itemValue === selectedTab,
+ )[0].label
+ }
+ size="inherit">
+ {OfferTableTabOptions.map(({ label: itemLabel, value }) => (
+ {
+ setSelectedTab(value);
+ }}
+ />
+ ))}
+
+
+
+ All offers in
+ setCurrency(value)}
+ selectedCurrency={currency}
+ />
+
+
+ itemValue === selectedFilter,
+ )[0].label
+ }
+ size="inherit">
+ {OfferTableFilterOptions.map(({ label: itemLabel, value }) => (
+ {
+ setSelectedFilter(value);
+ }}
+ />
+ ))}
+
+
-
);
}
function renderHeader() {
+ const columns = [
+ 'Company',
+ 'Title',
+ 'YOE',
+ selectedTab === YOE_CATEGORY.INTERN ? 'Monthly Salary' : 'Annual TC',
+ 'Date Offered',
+ 'Actions',
+ ];
return (
-
-
- {[
- 'Company',
- 'Title',
- 'YOE',
- selectedTab === YOE_CATEGORY.INTERN ? 'Monthly Salary' : 'TC/year',
- 'Date offered',
- 'Actions',
- ].map((header) => (
-
+
+
+ {columns.map((header, index) => (
+
{header}
|
))}
@@ -136,23 +166,23 @@ export default function OffersTable({
return (
- {renderTabs()}
-
-
+
{renderFilters()}
{offersQuery.isLoading ? (
) : (
-
- {renderHeader()}
-
- {offers.map((offer) => (
-
- ))}
-
-
+
+
+ {renderHeader()}
+
+ {offers.map((offer) => (
+
+ ))}
+
+
+
)}
diff --git a/apps/portal/src/components/shared/JobTitlesTypahead.tsx b/apps/portal/src/components/shared/JobTitlesTypahead.tsx
index 036af8f1..b2e80fe9 100644
--- a/apps/portal/src/components/shared/JobTitlesTypahead.tsx
+++ b/apps/portal/src/components/shared/JobTitlesTypahead.tsx
@@ -41,6 +41,7 @@ export default function JobTitlesTypeahead({
options={options}
placeholder={placeHolder}
required={required}
+ textSize="inherit"
onQueryChange={setQuery}
onSelect={onSelect}
/>
diff --git a/apps/portal/src/pages/offers/browse.tsx b/apps/portal/src/pages/offers/browse.tsx
index 31a9ab3c..dbfe6323 100644
--- a/apps/portal/src/pages/offers/browse.tsx
+++ b/apps/portal/src/pages/offers/browse.tsx
@@ -1,6 +1,7 @@
+import Link from 'next/link';
import { useState } from 'react';
+import { Banner } from '@tih/ui';
-import OffersTitle from '~/components/offers/OffersTitle';
import OffersTable from '~/components/offers/table/OffersTable';
import CompaniesTypeahead from '~/components/shared/CompaniesTypeahead';
import JobTitlesTypeahead from '~/components/shared/JobTitlesTypahead';
@@ -11,26 +12,39 @@ export default function OffersHomePage() {
return (
-
-
-
-
- Viewing offers for
-
- setjobTitleFilter(value)}
- />
-
- in
-
- setCompanyFilter(value)}
- />
-
+
+ ⭐ Check if your offer is competitive by submitting it{' '}
+
+ here
+
+ . ⭐
+
+
+
+
+
+ Tech Offers Repo
+
+
+
+ Find out how good your offer is. Discover how others got their
+ offers.
+
+
+
+ Viewing offers for
+
+ setjobTitleFilter(value)}
+ />
+ in
+ setCompanyFilter(value)}
+ />
diff --git a/apps/portal/src/pages/offers/index.tsx b/apps/portal/src/pages/offers/index.tsx
index 11218b77..75471156 100644
--- a/apps/portal/src/pages/offers/index.tsx
+++ b/apps/portal/src/pages/offers/index.tsx
@@ -96,7 +96,7 @@ export default function LandingPage() {
| |