Skip to content

#45 Create discount calculation component #93

#45 Create discount calculation component

#45 Create discount calculation component #93

Re-run triggered November 20, 2024 14:20
Status Failure
Total duration 23s
Artifacts

ci.yml

on: pull_request
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 3 warnings
test (v22.11.0): src/components/ui/discount.tsx#L13
'useEffect' is defined but never used
test (v22.11.0): src/components/ui/discount.tsx#L38
'calculatedValue' is assigned a value but never used
test (v22.11.0): src/components/ui/discount.tsx#L38
'setIsGross' is assigned a value but never used
test (v22.11.0): src/components/ui/discount.tsx#L38
'isGross' is assigned a value but never used
test (v22.11.0): src/hooks/use-toast.ts#L18
'actionTypes' is assigned a value but only used as a type
test (v22.11.0): src/utils/getCouponInfo.ts#L11
React Hook "useState" is called in function "getCouponInfo" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use"
test (v22.11.0): src/utils/getCouponInfo.ts#L12
React Hook "useState" is called in function "getCouponInfo" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use"
test (v22.11.0): src/utils/getCouponInfo.ts#L13
React Hook "useState" is called in function "getCouponInfo" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use"
test (v22.11.0): src/utils/getCouponInfo.ts#L14
React Hook "useState" is called in function "getCouponInfo" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use"
test (v22.11.0): src/utils/getCouponInfo.ts#L75
React Hook "useEffect" is called in function "getCouponInfo" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use"
test (v22.11.0): src/components/ui/form.tsx#L168
Fast refresh only works when a file only exports components. Use a new file to share constants or functions between components
test (v22.11.0): src/context/LanguageContext.tsx#L23
Fast refresh only works when a file only exports components. Use a new file to share constants or functions between components
test (v22.11.0): src/utils/getCouponInfo.ts#L81
React Hook useEffect has missing dependencies: 'calculateValuesOne' and 'calculateValuesTwo'. Either include them or remove the dependency array