From b94ff33d04a31959d3f2ccc4efeecb4c322cdf8b Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Thu, 22 Jun 2023 02:05:52 -0700 Subject: [PATCH] Add updates from 2023/06 Flash Gala (#331) * Fix server unavailable message Booleans are hard * Remove a log * Add characters from 2023-06 Flash Gala --- components/Layout/index.tsx | 2 +- components/about/UpdatesPage/index.tsx | 9 +++++++++ components/toasts/RemixedToast/index.tsx | 4 +--- pages/_app.tsx | 2 +- 4 files changed, 12 insertions(+), 5 deletions(-) diff --git a/components/Layout/index.tsx b/components/Layout/index.tsx index 6aafdde1..20ffa423 100644 --- a/components/Layout/index.tsx +++ b/components/Layout/index.tsx @@ -77,7 +77,7 @@ const Layout = ({ children }: PropsWithChildren) => { return ( <> - {appState.version && ServerAvailable} + {appState.version ? ServerAvailable() : ''}
{children}
) diff --git a/components/about/UpdatesPage/index.tsx b/components/about/UpdatesPage/index.tsx index 53319b4e..10b1061f 100644 --- a/components/about/UpdatesPage/index.tsx +++ b/components/about/UpdatesPage/index.tsx @@ -56,6 +56,15 @@ const UpdatesPage = () => { return (

{common('about.segmented_control.updates')}

+ { const { t } = useTranslation('common') - useEffect(() => { - console.log(partyName) - }, []) + // Methods: Event handlers function handleOpenChange() { onOpenChange(open) diff --git a/pages/_app.tsx b/pages/_app.tsx index 1486ab98..d213c926 100644 --- a/pages/_app.tsx +++ b/pages/_app.tsx @@ -130,7 +130,7 @@ function MyApp({ Component, pageProps }: AppProps) { - {appState.version ? ( + {!appState.version ? ( serverUnavailable() ) : (