mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-18 15:36:02 +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%"
|
h="80%"
|
||||||
justifyContent="flex-end"
|
justifyContent="flex-end"
|
||||||
alignItems="center"
|
alignItems="center"
|
||||||
bg="red"
|
|
||||||
>
|
>
|
||||||
<ScaleFade in={visible} unmountOnExit>
|
<ScaleFade in={visible} unmountOnExit>
|
||||||
<Box w="xs" h={580}>
|
<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
|
// 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.
|
// apply a CSS visibility value. If this is non-performant, this should be customized.
|
||||||
export const VisibilityProvider: React.FC = ({ children }) => {
|
export const VisibilityProvider: React.FC = ({ children }) => {
|
||||||
const [visible, setVisible] = useState(false);
|
const [visible, setVisible] = useState(true);
|
||||||
|
|
||||||
useNuiEvent<boolean>("setVisible", setVisible);
|
useNuiEvent<boolean>("setVisible", setVisible);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user