From 960c9f8345b091ec6a9f70b27c115e06c9ce4526 Mon Sep 17 00:00:00 2001 From: Brendan F Date: Sat, 8 Jul 2023 01:15:08 -0700 Subject: Add debug menu and clearing local storage --- src/components/Footer/index.tsx | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/components/Footer/index.tsx b/src/components/Footer/index.tsx index 448da54..1743133 100644 --- a/src/components/Footer/index.tsx +++ b/src/components/Footer/index.tsx @@ -1,9 +1,21 @@ import React from "react"; -import { IoHeart } from "react-icons/io5"; +import { IoBug, IoHeart } from "react-icons/io5"; +import { Button } from ".."; import * as Styled from "./index.styled"; export function Footer() { + const [showDebugMenu, setShowDebugMenu] = React.useState(false); + + const toggleDebugMenu = React.useCallback(() => { + setShowDebugMenu(show => !show) + }, []); + + const clearLocalStorage = React.useCallback(() => { + localStorage.clear(); + location.reload(); + }, []); + return ( ); } -- cgit v1.2.3