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

+3 -3
View File
@@ -1,7 +1,7 @@
{ {
"name": "web", "name": "ui",
"version": "0.1.0", "version": "1.0.0",
"homepage": "web/build", "homepage": "ui/build",
"private": true, "private": true,
"dependencies": { "dependencies": {
"@chakra-ui/react": "^1.7.3", "@chakra-ui/react": "^1.7.3",
+1
View File
@@ -7,6 +7,7 @@ body {
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
height: 100vh; height: 100vh;
background: none !important;
} }
#root { #root {
+1
View File
@@ -24,6 +24,7 @@ export const VisibilityProvider: React.FC = ({ children }) => {
const keyHandler = (e: KeyboardEvent) => { const keyHandler = (e: KeyboardEvent) => {
if (['Escape'].includes(e.code)) { if (['Escape'].includes(e.code)) {
fetchNui('exit'); fetchNui('exit');
setVisible(false);
} }
}; };