diff --git a/components/Banner.tsx b/components/Banner.tsx deleted file mode 100644 index b03c5d8..0000000 --- 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 15bb55b..4c922c8 100644 --- a/components/Sidebar.tsx +++ b/components/Sidebar.tsx @@ -190,9 +190,7 @@ const Sidebar = ({ return (