Skip to content

Commit

Permalink
fix(layout): add missing footer
Browse files Browse the repository at this point in the history
  • Loading branch information
devshred committed Jun 17, 2024
1 parent d6e14b7 commit 04ee46c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/routes/-components/Footer.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
const footerYear = new Date().getFullYear()

const Footer = () => (
<footer className="footer p-3 bg-footer text-base-content footer-center fixed bottom-0">
<footer
role="none"
className="footer p-3 bg-footer text-base-content footer-center fixed bottom-0"
>
<p>Copyright &copy; {footerYear} All rights reserved</p>
</footer>
)
Expand Down
2 changes: 2 additions & 0 deletions src/routes/__root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { createRootRoute, Outlet } from '@tanstack/react-router'
import Navbar from './-components/Navbar'
import Feedback from './-components/Feedback'
import Providers from '../services/providers'
import Footer from './-components/Footer'

const TanStackRouterDevtools =
process.env.NODE_ENV === 'development'
Expand All @@ -22,6 +23,7 @@ export const Route = createRootRoute({
<Feedback />
<Outlet />
</main>
<Footer />
</div>
<Suspense>
<TanStackRouterDevtools position="bottom-right" />
Expand Down

0 comments on commit 04ee46c

Please sign in to comment.