akshitagupta15june / PetMe-Prod

PetMe-Prod is an all-in-one platform that allows animals to be adopted, donated to pet lovers, and provides emergency medical care to stray animals in need.
https://pet-me-prod-pet-me-frontend.vercel.app/
MIT License
14 stars 38 forks source link

Custom Error Page #90

Closed Sarthak0085 closed 2 weeks ago

Sarthak0085 commented 2 weeks ago

Closes:- #74

Description I have created a new Page in the PetMe-Frontend pages folder name errorPage and add it to the main.jsx file in which if not any route is find then it goes to that page and in the errorPage i have created one error component in which i have added the custom error page code and i have check it doesn't affect other components.

Screenshots err

vercel[bot] commented 2 weeks ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
pet-me-prod-pet-me-frontend ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 4, 2024 7:43am
Sarthak0085 commented 2 weeks ago

If any changes needed in my code please ping me.

pratham-srivastava-07 commented 2 weeks ago

looks good! @Sarthak0085 but make sure this error page does not conflict with the routes like "/report" in which we have rendered an error component declaring that it is being built. Once confirmed, i'll merge it.

For refrence i am talking about this: image

Sarthak0085 commented 2 weeks ago

@pratham-srivastava-07 actually i have apply changes in that page. As you have mentioned not to conflict. So i will create another component and add the code into that without change the actual component.

Sarthak0085 commented 2 weeks ago

@pratham-srivastava-07 i have done the changes. You can check and if anything else need ping me. And also check the header component commit #89 pull commit. Apart from that i want to contribute in both backend and frontend component if there anything that i can contribute it will be good. Thanks!

pratham-srivastava-07 commented 2 weeks ago

@Sarthak0085 Okay that's what was needed. Also i have looked up the issue #89.. Merging now!