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",
"version": "0.1.0",
"homepage": "web/build",
"name": "ui",
"version": "1.0.0",
"homepage": "ui/build",
"private": true,
"dependencies": {
"@chakra-ui/react": "^1.7.3",
+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);
}
};