rename folder

This commit is contained in:
Loui Nissen-Petersen
2021-07-16 16:58:03 +02:00
parent 166bb037e4
commit 03dcf96fb1
529 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
export const getSortVariables = (sort?: string, isCategory: boolean = false) => {
let output = {}
switch (sort) {
case 'price-asc':
output = {
field: 'PRICE',
direction: 'ASC',
}
break
case 'price-desc':
output = {
field: 'PRICE',
direction: 'DESC',
}
break
case 'trending-desc':
output = {
field: 'RANK',
direction: 'DESC',
}
break
case 'latest-desc':
output = {
field: 'DATE',
direction: 'DESC',
}
break
}
return output
}