Skip to content

Commit 3274889

Browse files
authored
Merge pull request #85 from atlp-rwanda/ft-become-seller
after test
2 parents 85a82b1 + 8fc5c30 commit 3274889

File tree

8 files changed

+261
-202
lines changed

8 files changed

+261
-202
lines changed

Diff for: src/assets/styles/HomePage.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
padding: 1rem 2rem;
1515
border-radius: 5px;
1616
cursor: pointer;
17-
color: $white;
17+
color: $secondary-color;
1818
transition: all 0.5s ease-in-out;
1919

2020
&:hover {

Diff for: src/components/FullScreenPdfView/FullScreenPdfView.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export const FullScreenPdfView = ({ pdfUrl, open, onClose }) => {
3131
const adjustScale = () => {
3232
if (pdfContainerRef.current) {
3333
const containerWidth = pdfContainerRef.current.clientWidth;
34-
setScale(containerWidth / 245);
34+
setScale(containerWidth / 300);
3535
}
3636
};
3737

Diff for: src/components/ResendEmail.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const validationSchema = yup.object({
1414
})
1515
export const ResendEmail = () => {
1616
const dispatch = useAppDispatch();
17-
const { isSuccess, isEmailResend, isLoading, message } = useAppSelector((state) => state?.auth)
17+
const { isEmailSuccess, isEmailResend, isLoading, message } = useAppSelector((state) => state?.auth)
1818
const initialValues = {
1919
email: "",
2020
};
@@ -27,13 +27,13 @@ export const ResendEmail = () => {
2727
})
2828
useEffect(() => {
2929
dispatch(resetAuth());
30-
if(isSuccess) {
30+
if(isEmailSuccess) {
3131
toast.success(message);
3232
}
3333
if (isEmailResend) {
3434
toast.error(message)
3535
}
36-
}, [dispatch,isSuccess,isEmailResend,message]);
36+
}, [dispatch,isEmailSuccess,isEmailResend,message]);
3737
return (
3838
<>
3939
<Meta title="Resend Email - E-Commerce Ninjas" />

Diff for: src/components/TermsAndCondition/TermsAndCondition.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ const TermsAndConditionsForm: React.FC<TermsProps> = ({ onNext }) => {
116116
<FullScreenPdfView
117117
pdfUrl={fileUrl}
118118
open={open}
119-
onClose={setOpen(false)}
119+
onClose={handleClose}
120120
/>
121121
)}
122122

Diff for: src/components/UserDetails.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ const UserDetails: React.FC<any> = ({ Request }) => {
3737
const requestStatus = action === "Cancel" ? "Rejected" : "Accepted";
3838
dispatch(acceptOrRejectRequest({ userRequestId, requestStatus }));
3939
};
40+
console.log(UserRequest?.user)
4041
return (
4142
<div className="user-details">
4243
<div className="user-image">

0 commit comments

Comments
 (0)