File tree Expand file tree Collapse file tree 1 file changed +0
-33
lines changed Expand file tree Collapse file tree 1 file changed +0
-33
lines changed Original file line number Diff line number Diff line change @@ -12,36 +12,6 @@ function cn(...inputs: ClassValue[]) {
12
12
return twMerge ( clsx ( inputs ) ) ;
13
13
}
14
14
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
-
45
15
function getAvailabilityProps ( props : {
46
16
capacity ?: number | null ;
47
17
shelteredPeople ?: number | null ;
@@ -185,9 +155,6 @@ export {
185
155
getAvailabilityProps ,
186
156
group ,
187
157
getSupplyPriorityProps ,
188
- variantStatusPriority ,
189
- colorStatusPriority ,
190
- nameStatusPriority ,
191
158
priorityOptions ,
192
159
groupShelterSuppliesByTag ,
193
160
removeDuplicatesByField ,
You can’t perform that action at this time.
0 commit comments