From fc098bb1ef5d1e2645e1b04d615606f0e8d10f7b Mon Sep 17 00:00:00 2001 From: Juan Patricio Marroquin Date: Tue, 3 Oct 2023 08:11:05 -0500 Subject: [PATCH] fix: update overlay styles when switching address --- resources/js/Components/Layout/Overlay/Overlay.tsx | 4 ++-- resources/js/Hooks/useAuth.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/js/Components/Layout/Overlay/Overlay.tsx b/resources/js/Components/Layout/Overlay/Overlay.tsx index 68bd5e143..3980eb8d6 100644 --- a/resources/js/Components/Layout/Overlay/Overlay.tsx +++ b/resources/js/Components/Layout/Overlay/Overlay.tsx @@ -37,10 +37,10 @@ export const Overlay = ({ ref={reference} {...properties} className={cn( - "fixed inset-0 z-40 mt-14 flex h-screen w-screen flex-col items-center justify-start overflow-auto bg-white xs:mt-18 sm:mt-0 sm:justify-center", + "fixed inset-0 z-40 mt-14 flex h-screen w-screen flex-col items-center justify-start overflow-auto bg-white xs:mt-18 sm:mt-0 sm:justify-center ", className, { - "bg-opacity-60": !showCloseButton, + "bg-opacity-80 backdrop-blur-md": !showCloseButton, "bg-opacity-90": showCloseButton, }, )} diff --git a/resources/js/Hooks/useAuth.ts b/resources/js/Hooks/useAuth.ts index bec9e1a2a..6fb213344 100644 --- a/resources/js/Hooks/useAuth.ts +++ b/resources/js/Hooks/useAuth.ts @@ -92,8 +92,8 @@ export const useAuth = ({ mustBeSigned = false }: Properties = {}): App.Data.Aut return metamaskErrorMessage !== undefined; }; - const showCloseButton = allowsGuests || requiresSignature; + console.log({ showCloseButton, allowsGuests, requiresSignature }); return { authenticated,