Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: vote list - filtering/sorting #165

Merged
merged 12 commits into from
Jan 16, 2025
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,6 @@ export interface PoolActivityTypeTab {
label: string
}

export enum Sorting {
asc = 'asc',
desc = 'desc',
}

export function getPoolActivityTabsList({
variant,
poolType,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ import {
PoolActivityTokens,
SortingBy,
getPoolActivityTabsList,
Sorting,
} from './poolActivity.types'
import { PaginationState } from '@repo/lib/shared/components/pagination/pagination.types'
import { usePoolActivityViewType } from '../PoolActivityViewType/usePoolActivityViewType'
import { sortAlphabetically } from '@repo/lib/shared/utils/sorting'
import { Sorting } from '@repo/lib/shared/components/tables/SortableHeader'

export type PoolActivityResponse = ReturnType<typeof _usePoolActivity>
export const PoolActivityContext = createContext<PoolActivityResponse | null>(null)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import { Divider, Grid, GridItem, Text } from '@chakra-ui/react'
import { usePoolActivity } from '../PoolActivity/usePoolActivity'
import { Sorting, SortingBy } from '../PoolActivity/poolActivity.types'
import { SortableHeader } from '@repo/lib/shared/components/tables/SortableHeader'
import { SortingBy } from '../PoolActivity/poolActivity.types'
import { SortableHeader, Sorting } from '@repo/lib/shared/components/tables/SortableHeader'

export function PoolActivityTableHeader({ ...rest }) {
const {
Expand Down
Loading
Loading