mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-17 06:56:03 +01:00
fix(nui): Set frame visibility to true by default
This commit is contained in:
@@ -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}>
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user