Skip to content

Commit d2f495e

Browse files
committed
Merge branch '#1610-Deny-Reimbursement-Request-Endpoint' of https://github.com/Northeastern-Electric-Racing/FinishLine into #1610-Deny-Reimbursement-Request-Endpoint
merge
2 parents 83f3752 + 13699af commit d2f495e

3 files changed

Lines changed: 24 additions & 7 deletions

File tree

src/backend/src/services/reimbursement-requests.services.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -704,7 +704,7 @@ export default class ReimbursementRequestService {
704704
* Adds a reimbursement status with type denied to the given reimbursement request
705705
*
706706
* @param reimbursementRequestId the id of the reimbursement request to deny
707-
* @param submitter the user who is approving the reimbursement request
707+
* @param submitter the user who is denying the reimbursement request
708708
* @returns the created reimbursment status
709709
*/
710710
static async denyReimbursementRequest(reimbursementRequestId: string, submitter: User) {

src/frontend/src/components/VerticalDetailDisplay.tsx

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,33 @@ interface VerticalDetailDisplayProps {
1616
const VerticalDetailDisplay: React.FC<VerticalDetailDisplayProps> = ({ label, content, boxStyle }) => {
1717
const theme = useTheme();
1818
const backgroundColor = theme.palette.mode === 'dark' ? theme.palette.grey[800] : theme.palette.grey[200];
19+
1920
return (
2021
<Box
21-
overflow={'hidden'}
22+
overflow={'auto'}
2223
whiteSpace={'nowrap'}
23-
sx={{ backgroundColor: backgroundColor, borderRadius: '10px', justifyContent: 'center', boxShadow: 1, ...boxStyle }}
24+
bgcolor={backgroundColor}
25+
borderRadius={'10px'}
26+
justifyContent={'center'}
27+
boxShadow={1}
28+
sx={{
29+
'&::-webkit-scrollbar': {
30+
height: '0.55rem' // Adjust the the thickness of the scrollbar
31+
},
32+
'&::-webkit-scrollbar-thumb': {
33+
backgroundColor: '#EF4345', //FinishLine 'red' color
34+
borderRadius: '10px' //make the scrollbar rounded
35+
},
36+
'&::-webkit-scrollbar-thumb:hover': {
37+
backgroundColor: '#b0191a' // Change to a darker shade of red on hover
38+
},
39+
...boxStyle
40+
}}
2441
>
2542
<Typography textOverflow={'ellipsis'} textAlign={'center'} fontSize={50}>
2643
{content}
2744
</Typography>
28-
<Typography textAlign={'center'} fontWeight={'bold'}>
45+
<Typography textAlign={'center'} fontWeight={'bold'} marginBottom={'5px'}>
2946
{label}
3047
</Typography>
3148
</Box>

src/frontend/src/hooks/finance.hooks.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ export const useSetSaboNumber = (reimbursementRequestId: string) => {
340340
*/
341341
export const useEditAccountCode = (expenseTypeId: string) => {
342342
const queryClient = useQueryClient();
343-
return useMutation<{ message: string }, Error, any>(
343+
return useMutation<{ message: string }, Error, ExpenseTypePayload>(
344344
['expense-types', 'edit'],
345345
async (accountCodeData: ExpenseTypePayload) => {
346346
const { data } = await editAccountCode(expenseTypeId, accountCodeData);
@@ -355,7 +355,7 @@ export const useEditAccountCode = (expenseTypeId: string) => {
355355
*/
356356
export const useCreateAccountCode = () => {
357357
const queryClient = useQueryClient();
358-
return useMutation<{ message: string }, Error, any>(
358+
return useMutation<{ message: string }, Error, ExpenseTypePayload>(
359359
['expense-types', 'create'],
360360
async (accountCodeData: ExpenseTypePayload) => {
361361
const { data } = await createAccountCode(accountCodeData);
@@ -370,7 +370,7 @@ export const useCreateAccountCode = () => {
370370
*/
371371
export const useCreateVendor = () => {
372372
const queryClient = useQueryClient();
373-
return useMutation<{ message: string }, Error, any>(['vendors', 'create'], async (vendorData: { name: string }) => {
373+
return useMutation<Vendor, Error, { name: string }>(['vendors', 'create'], async (vendorData: { name: string }) => {
374374
const { data } = await createVendor(vendorData);
375375
queryClient.invalidateQueries(['vendors']);
376376
return data;

0 commit comments

Comments
 (0)