Skip to content
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

Routing fixed #473

Merged
merged 1 commit into from
Jul 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions src/components/footer/footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,39 +61,39 @@ const Footer = () => {
title: 'Company',
data: [
{ link: '/AboutUs', text: 'About Us' },
{ link: '#', text: 'Delivery Information' },
{ link: '*', text: 'Delivery Information' },
{ link: '/privacy-policy', text: 'Privacy Policy' },
{ link: '/termsandconditions', text: 'Terms & Conditions' },
{ link: '#', text: 'Contact Us' },
{ link: '/contact', text: 'Contact Us' },
{ link: '/faq', text: 'FAQ' },
{ link: '/feedback', text: 'Feedback' },
{ link: '#', text: 'Contributors' }
{ link: '/contributors', text: 'Contributors' }
]
},
{
title: 'Corporate',
data: [
{ link: '/AboutUs', title: 'About Us' },
{ link: '#', title: 'Delivery Information' },
{ link: '*', title: 'Delivery Information' },
{ link: '/privacy-policy', text: 'Privacy Policy' },
{ link: '/termsandconditions', text: 'Terms & Conditions' },
{ link: '#', text: 'Contact Us' },
{ link: '#', text: 'Support Center' },
{ link: '#', text: 'Careers' },
{ link: '#', text: 'Contributors' }
{ link: '/contact', text: 'Contact Us' },
{ link: '*', text: 'Support Center' },
{ link: '*', text: 'Careers' },
{ link: '/contributors', text: 'Contributors' }
]
},
{
title: 'Popular',
data: [
{ link: '/AboutUs', text: 'About Us' },
{ link: '#', text: 'Delivery Information' },
{ link: '*', text: 'Delivery Information' },
{ link: '/privacy-policy', text: 'Privacy Policy' },
{ link: '/termsandconditions', text: 'Terms & Conditions' },
{ link: '#', text: 'Contact Us' },
{ link: '#', text: 'Support Center' },
{ link: '#', text: 'Careers' },
{ link: '#', text: 'Contributors' }
{ link: '/contact', text: 'Contact Us' },
{ link: '*', text: 'Support Center' },
{ link: '*', text: 'Careers' },
{ link: '/contributors', text: 'Contributors' }
]
}
];
Expand Down
1 change: 1 addition & 0 deletions src/pages/Contributors/Contributors.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ function Contributors() {
const [contributors, setContributors] = useState([]);

useEffect(() => {
window.scrollTo(0, 0);
async function fetchContributors() {
try {
const response = await axios.get(
Expand Down
9 changes: 8 additions & 1 deletion src/pages/NotFound/index.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
import React from 'react';
import React, { useEffect } from 'react';
import './style.css';
import NotFoundImg from '../../assets/images/page-404.webp';
import { Button } from '@mui/material';
import { Link } from 'react-router-dom';

const NotFound = () => {
useEffect(()=>{
window.scrollTo(0, 0);

return ()=>{
window.scrollTo(0,0);
}
},[])
return (
<section className="notFound">
<div className="container-fluid">
Expand Down