Skip to content

Commit dc0bb64

Browse files
committed
removes unusued functions
1 parent 703aa9b commit dc0bb64

File tree

1 file changed

+0
-33
lines changed

1 file changed

+0
-33
lines changed

src/lib/utils.ts

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -12,36 +12,6 @@ function cn(...inputs: ClassValue[]) {
1212
return twMerge(clsx(inputs));
1313
}
1414

15-
/**
16-
* deprecated
17-
*/
18-
function variantStatusPriority(priority: SupplyPriority) {
19-
if (priority === SupplyPriority.Needing) return 'danger';
20-
if (priority === SupplyPriority.Urgent) return 'warn';
21-
if (priority === SupplyPriority.NotNeeded) return 'alert';
22-
if (priority === SupplyPriority.Remaining) return 'success';
23-
}
24-
25-
/**
26-
* deprecated
27-
*/
28-
const colorStatusPriority = (priority: SupplyPriority) => {
29-
if (priority === SupplyPriority.Needing) return 'bg-[#f69f9d]';
30-
if (priority === SupplyPriority.Urgent) return 'bg-[#f8b993]';
31-
if (priority === SupplyPriority.NotNeeded) return 'bg-[#f9cf8d]';
32-
if (priority === SupplyPriority.Remaining) return 'bg-[#63bc43]';
33-
};
34-
35-
/**
36-
* deprecated
37-
*/
38-
function nameStatusPriority(priority: SupplyPriority) {
39-
if (priority === SupplyPriority.Urgent) return 'Precisa com urgência';
40-
if (priority === SupplyPriority.Needing) return 'Precisa';
41-
if (priority === SupplyPriority.NotNeeded) return 'Não preciso';
42-
if (priority === SupplyPriority.Remaining) return 'Disponível para doação';
43-
}
44-
4515
function getAvailabilityProps(props: {
4616
capacity?: number | null;
4717
shelteredPeople?: number | null;
@@ -185,9 +155,6 @@ export {
185155
getAvailabilityProps,
186156
group,
187157
getSupplyPriorityProps,
188-
variantStatusPriority,
189-
colorStatusPriority,
190-
nameStatusPriority,
191158
priorityOptions,
192159
groupShelterSuppliesByTag,
193160
removeDuplicatesByField,

0 commit comments

Comments
 (0)