diff --git a/web/components/contract-search.tsx b/web/components/contract-search.tsx
index 952d4034..f7972a3d 100644
--- a/web/components/contract-search.tsx
+++ b/web/components/contract-search.tsx
@@ -26,6 +26,8 @@ import { trackCallback } from 'web/lib/service/analytics'
import ContractSearchFirestore from 'web/pages/contract-search-firestore'
import { useMemberGroups } from 'web/hooks/use-group'
import { NEW_USER_GROUP_SLUGS } from 'common/group'
+import { PillButton } from './buttons/pill-button'
+import { toPairs } from 'lodash'
const searchClient = algoliasearch(
'GJQPAYENIF',
@@ -46,6 +48,13 @@ const sortIndexes = [
]
type filter = 'personal' | 'open' | 'closed' | 'resolved' | 'all'
+const filterOptions: { [label: string]: filter } = {
+ All: 'all',
+ Open: 'open',
+ Closed: 'closed',
+ Resolved: 'resolved',
+ 'For you': 'personal',
+}
export function ContractSearch(props: {
querySortOptions?: {
@@ -156,18 +165,6 @@ export function ContractSearch(props: {
}}
/>
{/*// TODO track WHICH filter users are using*/}
-
{!hideOrderSelector && (
- {/**/}
+
+ {toPairs(filterOptions).map(([label, f]) => {
+ return (
+ setFilter(f)}>
+ {label}
+
+ )
+ })}
+
+
+
{filter === 'personal' &&
(follows ?? []).length === 0 &&