fix(nui): Set frame visibility to true by default

This commit is contained in:
Luke
2022-04-01 20:25:19 +02:00
parent a7dd713b6b
commit 8156a123f7
2 changed files with 1 additions and 2 deletions

View File

@@ -68,7 +68,6 @@ const ContextMenu: React.FC = () => {
h="80%"
justifyContent="flex-end"
alignItems="center"
bg="red"
>
<ScaleFade in={visible} unmountOnExit>
<Box w="xs" h={580}>

View File

@@ -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<boolean>("setVisible", setVisible);