fix(nui): Visibility setting and building

This commit is contained in:
Luke committed 2021-12-31 15:10:45 +01:00
1 parent d1a5a9e249
commit c8857e18c4
3 files changed
+5 -3

No files matched your search

+1
View File
@@ -7,6 +7,7 @@ body {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
height: 100vh;
background: none !important;
}
#root {
+1
View File
@@ -24,6 +24,7 @@ export const VisibilityProvider: React.FC = ({ children }) => {
const keyHandler = (e: KeyboardEvent) => {
if (['Escape'].includes(e.code)) {
fetchNui('exit');
setVisible(false);
}
};