From af5703fb43f238e6e2d5fd390ce88d97216dcb1e Mon Sep 17 00:00:00 2001 From: Quentin Burg Date: Fri, 3 May 2024 10:48:51 +0200 Subject: [PATCH] :fire: remove banner --- components/Banner.tsx | 23 ----------------------- components/Sidebar.tsx | 4 +--- components/modal.tsx | 4 +--- components/navbar.tsx | 6 +++--- components/transferForm.tsx | 4 +--- context/state.ts | 12 +----------- pages/_app.tsx | 15 +-------------- 7 files changed, 8 insertions(+), 60 deletions(-) delete mode 100644 components/Banner.tsx diff --git a/components/Banner.tsx b/components/Banner.tsx deleted file mode 100644 index b03c5d87..00000000 --- a/components/Banner.tsx +++ /dev/null @@ -1,23 +0,0 @@ -import { Cross1Icon } from "@radix-ui/react-icons"; -import { useContext } from "react"; -import { AppDispatchContext, AppStateContext } from "../context/state"; - -type props = { - children: React.ReactNode; -}; - -const Banner = ({ children }: props) => { - const state = useContext(AppStateContext)!; - const dispatch = useContext(AppDispatchContext)!; - - return state.hasBanner ? ( -
-
{children}
- -
- ) : null; -}; - -export default Banner; diff --git a/components/Sidebar.tsx b/components/Sidebar.tsx index 15bb55b3..4c922c81 100644 --- a/components/Sidebar.tsx +++ b/components/Sidebar.tsx @@ -190,9 +190,7 @@ const Sidebar = ({ return (