mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
* new ENV and page placeholder * display list data * comment out SearchInput * add counters * add tag to address page * tests * refactoring * fix ts * change ENVs for demo * fix ENVs validator * [skip ci] remove hash * review fixes
17 lines
747 B
TypeScript
17 lines
747 B
TypeScript
import type { ValidatorsSortingValue, ValidatorsSortingField } from 'types/api/validators';
|
|
|
|
import type { Option } from 'ui/shared/sort/Sort';
|
|
|
|
export const SORT_OPTIONS: Array<Option<ValidatorsSortingValue>> = [
|
|
{ title: 'Default', id: undefined },
|
|
{ title: 'Status descending', id: 'state-desc' },
|
|
{ title: 'Status ascending', id: 'state-asc' },
|
|
{ title: 'Blocks validated descending', id: 'blocks_validated-desc' },
|
|
{ title: 'Blocks validated ascending', id: 'blocks_validated-asc' },
|
|
];
|
|
|
|
export const SORT_SEQUENCE: Record<ValidatorsSortingField, Array<ValidatorsSortingValue | undefined>> = {
|
|
state: [ 'state-desc', 'state-asc', undefined ],
|
|
blocks_validated: [ 'blocks_validated-desc', 'blocks_validated-asc', undefined ],
|
|
};
|