Skip to content

Commit 6f01088

Browse files
Merge pull request #161 from reactdeveloperske/developer
Refactor: Move Footer to Its Own Component Folder
2 parents 3b4e5a4 + 544d6c9 commit 6f01088

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

src/components/ContactUs/ContactUs.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import { useEffect, useState } from 'react';
22
import DesktopVersion from './DesktopVersion';
3-
import Footer from './Footer';
3+
4+
import MobileVersion from './MobileVersion';
5+
// import Footer from '../Footer';
46

57
export default function ContactUs() {
68
const [screenWidth, setScreenWidth] = useState<number | null>(null);
@@ -28,7 +30,7 @@ export default function ContactUs() {
2830
Contact us
2931
</h2>
3032
<DesktopVersion />
31-
<Footer />
33+
{/* <Footer/> */}
3234
</section>
3335
);
3436
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,4 @@ const Footer = () => {
5757
);
5858
};
5959

60-
export default Footer;
60+
export default Footer;

src/components/Footer/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { default } from './Footer';

src/pages/index.page.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ import ContactUs from '../components/ContactUs';
44
import Events from '../components/Events/Events';
55
import MissionPillars from '../components/MissionPillars/MissionPillars';
66
import HeroHeader from '../components/HeroHeader';
7-
import Navbar from '../components/Navbar';
7+
import Navbar from '../components/Navbar';;
8+
import Footer from '../components/Footer';
89

910
export default function Home() {
1011
return (
@@ -32,6 +33,7 @@ export default function Home() {
3233
<MissionPillars />
3334
<Events />
3435
<ContactUs />
36+
<Footer />
3537
</main>
3638
</div>
3739
);

0 commit comments

Comments
 (0)