Skip to content

Commit

Permalink
Merge pull request #85 from atlp-rwanda/ft-become-seller
Browse files Browse the repository at this point in the history
after test
  • Loading branch information
Aime-Patrick authored Aug 26, 2024
2 parents 85a82b1 + 8fc5c30 commit 3274889
Show file tree
Hide file tree
Showing 8 changed files with 261 additions and 202 deletions.
2 changes: 1 addition & 1 deletion src/assets/styles/HomePage.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
padding: 1rem 2rem;
border-radius: 5px;
cursor: pointer;
color: $white;
color: $secondary-color;
transition: all 0.5s ease-in-out;

&:hover {
Expand Down
2 changes: 1 addition & 1 deletion src/components/FullScreenPdfView/FullScreenPdfView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const FullScreenPdfView = ({ pdfUrl, open, onClose }) => {
const adjustScale = () => {
if (pdfContainerRef.current) {
const containerWidth = pdfContainerRef.current.clientWidth;
setScale(containerWidth / 245);
setScale(containerWidth / 300);
}
};

Expand Down
6 changes: 3 additions & 3 deletions src/components/ResendEmail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const validationSchema = yup.object({
})
export const ResendEmail = () => {
const dispatch = useAppDispatch();
const { isSuccess, isEmailResend, isLoading, message } = useAppSelector((state) => state?.auth)
const { isEmailSuccess, isEmailResend, isLoading, message } = useAppSelector((state) => state?.auth)
const initialValues = {
email: "",
};
Expand All @@ -27,13 +27,13 @@ export const ResendEmail = () => {
})
useEffect(() => {
dispatch(resetAuth());
if(isSuccess) {
if(isEmailSuccess) {
toast.success(message);
}
if (isEmailResend) {
toast.error(message)
}
}, [dispatch,isSuccess,isEmailResend,message]);
}, [dispatch,isEmailSuccess,isEmailResend,message]);
return (
<>
<Meta title="Resend Email - E-Commerce Ninjas" />
Expand Down
2 changes: 1 addition & 1 deletion src/components/TermsAndCondition/TermsAndCondition.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ const TermsAndConditionsForm: React.FC<TermsProps> = ({ onNext }) => {
<FullScreenPdfView
pdfUrl={fileUrl}
open={open}
onClose={setOpen(false)}
onClose={handleClose}
/>
)}

Expand Down
1 change: 1 addition & 0 deletions src/components/UserDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ const UserDetails: React.FC<any> = ({ Request }) => {
const requestStatus = action === "Cancel" ? "Rejected" : "Accepted";
dispatch(acceptOrRejectRequest({ userRequestId, requestStatus }));
};
console.log(UserRequest?.user)
return (
<div className="user-details">
<div className="user-image">
Expand Down
Loading

0 comments on commit 3274889

Please sign in to comment.