From 96e499cc5806a6c975999941bbf7c8ddb2ddf49a Mon Sep 17 00:00:00 2001 From: Richard Roberson Date: Tue, 4 Feb 2025 18:53:52 -0700 Subject: [PATCH] Setting to automatically skip blank pages, on by default --- src/app/layout.tsx | 3 ++- src/components/Footer.tsx | 12 +++++++++- src/components/PDFViewSettings.tsx | 16 ++++++++++++- src/components/icons/Icons.tsx | 32 ++++++++++++++++++++++++++ src/contexts/ConfigContext.tsx | 14 +++++++++++- src/contexts/PDFContext.tsx | 1 + src/contexts/TTSContext.tsx | 36 ++++++++++++++++++------------ 7 files changed, 96 insertions(+), 18 deletions(-) diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 63be209..892fb11 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -44,7 +44,8 @@ export const metadata: Metadata = { }, }; -const isDev = process.env.NEXT_PUBLIC_NODE_ENV !== 'production'; +//const isDev = process.env.NEXT_PUBLIC_NODE_ENV !== 'production' || process.env.NODE_ENV == null; +const isDev = false; export default function RootLayout({ children, diff --git a/src/components/Footer.tsx b/src/components/Footer.tsx index e9a87b1..72fae59 100644 --- a/src/components/Footer.tsx +++ b/src/components/Footer.tsx @@ -1,12 +1,22 @@ import { Popover, PopoverButton, PopoverPanel } from '@headlessui/react' +import { GithubIcon } from './icons/Icons' export function Footer() { return (