mirror of
https://gitlab.com/wheres-the-tp/ui-mobile.git
synced 2026-01-25 07:54:57 -06:00
13 lines
274 B
JavaScript
13 lines
274 B
JavaScript
|
|
import type { OrderBy } from '../constants/OrderByConstants';
|
||
|
|
|
||
|
|
export const getOrderbyText = (orderby: Orderby) => {
|
||
|
|
switch (orderby) {
|
||
|
|
case 'quantity':
|
||
|
|
return 'Quantity';
|
||
|
|
case 'lastupdated':
|
||
|
|
return 'Most Recently Updated';
|
||
|
|
default:
|
||
|
|
return 'Distance';
|
||
|
|
}
|
||
|
|
};
|