@autobusal/utilities 1.5.3 → 1.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/package.json +1 -1
- package/users.tsx +14 -0
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
package/users.tsx
CHANGED
|
@@ -82,10 +82,24 @@ const Status = styled.span<{ $type: string }>`
|
|
|
82
82
|
${ props => props.$type === 'unavailable' && css`
|
|
83
83
|
background: #FFB4B4;
|
|
84
84
|
` }
|
|
85
|
+
${ props => props.$type === 'awaiting' && css`
|
|
86
|
+
background: #D9B8FF;
|
|
87
|
+
` }
|
|
85
88
|
`;
|
|
86
89
|
|
|
87
90
|
export const DisplayStatus = (status: number, t: TFunction<'common'>): (JSX.Element | null) => {
|
|
88
91
|
switch (status) {
|
|
92
|
+
// Edited: Claude - Date: 2026-08-28 (sweep, low): status 4 is "waiting
|
|
93
|
+
// for approval" (a self-registered agency that completed its profile) -
|
|
94
|
+
// GetStatus above always listed it, but this switch had no case, so
|
|
95
|
+
// precisely the rows needing the admin's decision showed a blank cell
|
|
96
|
+
case 4:
|
|
97
|
+
return (
|
|
98
|
+
<Status $type="awaiting">
|
|
99
|
+
{ t('data.statuses.awaiting', { ns: 'common' }) }
|
|
100
|
+
</Status>
|
|
101
|
+
);
|
|
102
|
+
|
|
89
103
|
case 3:
|
|
90
104
|
return (
|
|
91
105
|
<Status $type="pending">
|