From 6523005468ef607b9863606599cd28fb2c1f868a Mon Sep 17 00:00:00 2001 From: tarunkumar2005 Date: Wed, 9 Oct 2024 17:30:52 +0530 Subject: [PATCH] Fixed the footer not at bottom --- src/App.jsx | 30 ++++++++++++++++-------------- src/components/shared/Footer.jsx | 12 ++++++------ 2 files changed, 22 insertions(+), 20 deletions(-) diff --git a/src/App.jsx b/src/App.jsx index 370d4950..bc036e10 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -26,24 +26,27 @@ function App() { const { data, isLoading, error } = useRepoData(); if (isLoading) - return
-

Loading...

-
; + return ( +
+

Loading...

+
+ ); if (error) - return
-

Error: {error.message}

-
; + return ( +
+

Error: {error.message}

+
+ ); return ( -
+
- - + -
+
{data.map((obj) => ( @@ -53,16 +56,15 @@ function App() { ))} +
-
- {showChatbot && } -
diff --git a/src/components/shared/Footer.jsx b/src/components/shared/Footer.jsx index 328322da..2c1a1de2 100644 --- a/src/components/shared/Footer.jsx +++ b/src/components/shared/Footer.jsx @@ -6,7 +6,7 @@ const Footer = () => { const year = new Date().getFullYear(); return ( -