Skip to content

after test #85

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Aug 26, 2024
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
Loading