diff --git a/app/routes/view[.]html/KeyHandler.tsx b/app/routes/view[.]html/KeyHandler.tsx index 72376d2..be1552a 100644 --- a/app/routes/view[.]html/KeyHandler.tsx +++ b/app/routes/view[.]html/KeyHandler.tsx @@ -1,7 +1,5 @@ - import { borders } from './BorderButtons' - function nextBorder(current: string): string { const currentIndex = borders.findIndex((border) => border.value === current); const nextIndex = (currentIndex + 1) % borders.length; @@ -10,10 +8,6 @@ function nextBorder(current: string): string { function KeyHandler(searchParams: URLSearchParams, border: string, currentZoom: number, e: KeyboardEvent): URLSearchParams | null { - - - console.log(e); - switch (e.key.toLocaleLowerCase()) { case '1': searchParams.set('zoom', '1'); diff --git a/app/routes/view[.]html/route.tsx b/app/routes/view[.]html/route.tsx index b2b7799..780aad0 100644 --- a/app/routes/view[.]html/route.tsx +++ b/app/routes/view[.]html/route.tsx @@ -8,6 +8,7 @@ import { Text, useBreakpointValue, useColorModeValue, + Link, } from "@chakra-ui/react"; import { useNavigate, useSearchParams } from "@remix-run/react"; @@ -181,7 +182,7 @@ export default function ViewPage() { style={{ width: "5rem", height: "5rem" }} /> {t("Error loading image")} - {url} + {url} ) : ( <>