From 43b036dc8ac03100787ec691a4f4ebe3670f861f Mon Sep 17 00:00:00 2001 From: sowgro Date: Thu, 3 Apr 2025 23:22:16 -0400 Subject: code cleanup --- ufund-ui/src/app/components/cupboard/cupboard.component.html | 2 +- ufund-ui/src/app/components/cupboard/sorting.ts | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'ufund-ui/src') diff --git a/ufund-ui/src/app/components/cupboard/cupboard.component.html b/ufund-ui/src/app/components/cupboard/cupboard.component.html index cd387a3..c055c31 100644 --- a/ufund-ui/src/app/components/cupboard/cupboard.component.html +++ b/ufund-ui/src/app/components/cupboard/cupboard.component.html @@ -40,7 +40,7 @@ deleteDelete Need - + diff --git a/ufund-ui/src/app/components/cupboard/sorting.ts b/ufund-ui/src/app/components/cupboard/sorting.ts index 7cb3f39..73a5ba9 100644 --- a/ufund-ui/src/app/components/cupboard/sorting.ts +++ b/ufund-ui/src/app/components/cupboard/sorting.ts @@ -50,9 +50,9 @@ const sortByLocation: sortAlgo = (a: Need, b: Need): number => { } export const SortingAlgoArrays: {[key: string]: { func: sortAlgo, display: [string, string]}} = { - "sortByPriority": { func: sortByPriority, display: ["Highest Priority", "Lowest Priority" ] }, - "sortByName": { func: sortByName, display: ["Name (A to Z)", "Name (Z to A)" ] }, - "sortByLocation": { func: sortByLocation, display: ["Location (A to Z)", "Location (Z to A)" ] }, - "sortByCompletion": { func: sortByCompletion, display: ["Most Completed", "Least Completed" ] }, - "sortByGoal": { func: sortByGoal, display: ["Largest Maximum Goal", "Smallest Maximum Goal" ] }, + sortByPriority: { func: sortByPriority, display: ["Highest Priority", "Lowest Priority" ] }, + sortByName: { func: sortByName, display: ["Name (A to Z)", "Name (Z to A)" ] }, + sortByLocation: { func: sortByLocation, display: ["Location (A to Z)", "Location (Z to A)" ] }, + sortByCompletion: { func: sortByCompletion, display: ["Most Completed", "Least Completed" ] }, + sortByGoal: { func: sortByGoal, display: ["Largest Maximum Goal", "Smallest Maximum Goal" ] }, }; -- cgit v1.2.3