fix tab type, bump lib for tree shaking

This commit is contained in:
AAGaming
2022-06-29 11:57:59 -04:00
parent abc5ce5382
commit 18d444e8fc
3 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -37,7 +37,7 @@
} }
}, },
"dependencies": { "dependencies": {
"decky-frontend-lib": "^1.0.0", "decky-frontend-lib": "^1.0.1",
"react-icons": "^4.4.0" "react-icons": "^4.4.0"
} }
} }
+4 -4
View File
@@ -9,7 +9,7 @@ specifiers:
'@types/react': 16.14.0 '@types/react': 16.14.0
'@types/react-router': 5.1.18 '@types/react-router': 5.1.18
'@types/webpack': ^5.28.0 '@types/webpack': ^5.28.0
decky-frontend-lib: ^1.0.0 decky-frontend-lib: ^1.0.1
husky: ^8.0.1 husky: ^8.0.1
import-sort-style-module: ^6.0.0 import-sort-style-module: ^6.0.0
inquirer: ^8.2.4 inquirer: ^8.2.4
@@ -23,7 +23,7 @@ specifiers:
typescript: ^4.7.3 typescript: ^4.7.3
dependencies: dependencies:
decky-frontend-lib: 1.0.0 decky-frontend-lib: 1.0.1
react-icons: 4.4.0_react@16.14.0 react-icons: 4.4.0_react@16.14.0
devDependencies: devDependencies:
@@ -803,8 +803,8 @@ packages:
ms: 2.1.2 ms: 2.1.2
dev: true dev: true
/decky-frontend-lib/1.0.0: /decky-frontend-lib/1.0.1:
resolution: {integrity: sha512-ebBLyZEv0z51UmzhUNvULwmZfXsknLIelj1iQeGxfFOEI6JXrrjztcF3PsZVv3rVTTgqRfIQnXqyaaUdaeOUxA==} resolution: {integrity: sha512-SgIPoB3IcWbzVRlXvs8JfhwrMphHYa7O/Ek2mh+rC0WTVT3TI2qGJ5+OoV16mw5kGY0DMu1ikcZC6ib1lh2zKQ==}
dev: false dev: false
/deepmerge/4.2.2: /deepmerge/4.2.2:
+1 -1
View File
@@ -114,7 +114,7 @@ class TabsHook extends Logger {
this.tabs.push(tab); this.tabs.push(tab);
} }
removeById(id: string) { removeById(id: number) {
this.log('Removing tab', id); this.log('Removing tab', id);
this.tabs = this.tabs.filter((tab) => tab.id !== id); this.tabs = this.tabs.filter((tab) => tab.id !== id);
} }