From 8156a123f747bdae0495e2ce3452fe840569e20a Mon Sep 17 00:00:00 2001 From: Luke Date: Fri, 1 Apr 2022 20:25:19 +0200 Subject: [PATCH] fix(nui): Set frame visibility to true by default --- web/src/components/features/menu/ContextMenu.tsx | 1 - web/src/providers/VisibilityProvider.tsx | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/web/src/components/features/menu/ContextMenu.tsx b/web/src/components/features/menu/ContextMenu.tsx index d81f18d..5e92600 100644 --- a/web/src/components/features/menu/ContextMenu.tsx +++ b/web/src/components/features/menu/ContextMenu.tsx @@ -68,7 +68,6 @@ const ContextMenu: React.FC = () => { h="80%" justifyContent="flex-end" alignItems="center" - bg="red" > diff --git a/web/src/providers/VisibilityProvider.tsx b/web/src/providers/VisibilityProvider.tsx index 72580e1..a939080 100644 --- a/web/src/providers/VisibilityProvider.tsx +++ b/web/src/providers/VisibilityProvider.tsx @@ -11,7 +11,7 @@ interface VisibilityProviderValue { // This should be mounted at the top level of your application, it is currently set to // apply a CSS visibility value. If this is non-performant, this should be customized. export const VisibilityProvider: React.FC = ({ children }) => { - const [visible, setVisible] = useState(false); + const [visible, setVisible] = useState(true); useNuiEvent("setVisible", setVisible);