From c2bf3adc24a3e1b0e2f0670418e9bde63e797316 Mon Sep 17 00:00:00 2001 From: Matthieu Jacq <67386567+matthieujacq@users.noreply.github.com> Date: Thu, 26 Oct 2023 18:23:36 +0200 Subject: [PATCH] feat: remove legacy header and footer (#1509) # Description Also add a back to chat button in the user page to make up for the loss of the legacy header. ## Screenshots (if appropriate): image --- frontend/app/App.tsx | 4 - .../ActionsBar/components/ChatInput/index.tsx | 2 +- frontend/app/user/page.tsx | 117 ++++++++++-------- frontend/lib/components/Footer/index.tsx | 60 --------- .../{NavBar/components => Logo}/Logo.tsx | 0 .../components/Header/hooks/useHeader.ts | 34 ----- .../NavBar/components/Header/index.tsx | 25 ---- .../NavBar/components/MobileMenu.tsx | 17 --- .../NavItems/components/AuthButtons.tsx | 33 ----- .../NavItems/components/NavLink.tsx | 24 ---- .../NavBar/components/NavItems/index.tsx | 45 ------- frontend/lib/components/NavBar/index.tsx | 32 ----- .../Sidebar/components/SidebarHeader.tsx | 2 +- frontend/public/locales/en/translation.json | 2 - frontend/public/locales/es/translation.json | 2 - frontend/public/locales/fr/translation.json | 3 +- .../public/locales/pt-br/translation.json | 2 - frontend/public/locales/ru/translation.json | 2 - .../public/locales/zh-cn/translation.json | 2 - 19 files changed, 65 insertions(+), 343 deletions(-) delete mode 100644 frontend/lib/components/Footer/index.tsx rename frontend/lib/components/{NavBar/components => Logo}/Logo.tsx (100%) delete mode 100644 frontend/lib/components/NavBar/components/Header/hooks/useHeader.ts delete mode 100644 frontend/lib/components/NavBar/components/Header/index.tsx delete mode 100644 frontend/lib/components/NavBar/components/MobileMenu.tsx delete mode 100644 frontend/lib/components/NavBar/components/NavItems/components/AuthButtons.tsx delete mode 100644 frontend/lib/components/NavBar/components/NavItems/components/NavLink.tsx delete mode 100644 frontend/lib/components/NavBar/components/NavItems/index.tsx delete mode 100644 frontend/lib/components/NavBar/index.tsx diff --git a/frontend/app/App.tsx b/frontend/app/App.tsx index f531dc4f1..31cfd320a 100644 --- a/frontend/app/App.tsx +++ b/frontend/app/App.tsx @@ -3,8 +3,6 @@ import { QueryClient, QueryClientProvider } from "@tanstack/react-query"; import { PropsWithChildren, useEffect } from "react"; -import Footer from "@/lib/components/Footer"; -import { NavBar } from "@/lib/components/NavBar"; import { useBrainContext } from "@/lib/context/BrainProvider/hooks/useBrainContext"; import { useSupabase } from "@/lib/context/SupabaseProvider"; import { UpdateMetadata } from "@/lib/helpers/updateMetadata"; @@ -31,9 +29,7 @@ export const App = ({ children }: PropsWithChildren): JSX.Element => { return ( - {children} -