From ca2cb911bad1b30dbfa4c99b459e8e5ec5f4026a Mon Sep 17 00:00:00 2001 From: Topvennie Date: Sun, 20 Oct 2024 15:04:31 +0200 Subject: [PATCH 1/4] vinvoor: footer --- vinvoor/src/App.tsx | 18 ++++++++++--- vinvoor/src/footer/Footer.tsx | 47 +++++++++++++++++++++++++++++++++ vinvoor/src/hooks/useVersion.ts | 12 +++++++++ vinvoor/src/types/version.ts | 17 ++++++++++++ 4 files changed, 90 insertions(+), 4 deletions(-) create mode 100644 vinvoor/src/footer/Footer.tsx create mode 100644 vinvoor/src/hooks/useVersion.ts create mode 100644 vinvoor/src/types/version.ts diff --git a/vinvoor/src/App.tsx b/vinvoor/src/App.tsx index 4bde83d..9f58639 100644 --- a/vinvoor/src/App.tsx +++ b/vinvoor/src/App.tsx @@ -2,12 +2,13 @@ import { Box, Container } from "@mui/material"; import { useState } from "react"; import { Navigate, Outlet, useOutlet } from "react-router-dom"; import { LoadingSkeleton } from "./components/LoadingSkeleton"; +import { Footer } from "./footer/Footer"; +import { useUser } from "./hooks/useUser"; import { NavBar } from "./navbar/NavBar"; import { Overview } from "./overview/Overview"; -import { WelcomePage } from "./WelcomePage"; -import { randomInt } from "./util/util"; import "./themes/background.css"; -import { useUser } from "./hooks/useUser"; +import { randomInt } from "./util/util"; +import { WelcomePage } from "./WelcomePage"; export const App = () => { const userQuery = useUser(); @@ -16,11 +17,19 @@ export const App = () => { const [backgroundSix] = useState(() => randomInt(0, 50) === 1); return ( - + @@ -39,6 +48,7 @@ export const App = () => { )} +