Skip to content

Commit eb1b819

Browse files
committed
Array VTables 5
Signed-off-by: Nicholas Gates <nick@nickgates.com>
1 parent 5f68607 commit eb1b819

5 files changed

Lines changed: 6 additions & 5 deletions

File tree

vortex-web/src/components/DataTable.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ function ColumnHeader({
244244
approximate: boolean;
245245
}) {
246246
const [showTip, setShowTip] = useState(false);
247-
const timeoutRef = useRef<ReturnType<typeof setTimeout>>();
247+
const timeoutRef = useRef<ReturnType<typeof setTimeout>>(undefined);
248248

249249
const onEnter = () => {
250250
clearTimeout(timeoutRef.current);

vortex-web/src/components/ThemePicker.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// SPDX-License-Identifier: Apache-2.0
22
// SPDX-FileCopyrightText: Copyright the Vortex contributors
33

4+
import type React from 'react';
45
import { useTheme, type ThemeChoice } from '../contexts/ThemeContext';
56

67
const cycle: ThemeChoice[] = ['dark', 'light', 'system'];
@@ -65,7 +66,7 @@ function MonitorIcon() {
6566
);
6667
}
6768

68-
const icons: Record<ThemeChoice, () => JSX.Element> = {
69+
const icons: Record<ThemeChoice, () => React.JSX.Element> = {
6970
light: SunIcon,
7071
dark: MoonIcon,
7172
system: MonitorIcon,

vortex-web/src/components/detail/TreemapPane.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ export function TreemapPane({ node, segments, onSelectNode, onHoverNode }: Treem
151151
.paddingInner(2)
152152
.paddingOuter(1)
153153
.round(true)(root);
154-
return root.descendants();
154+
return root.descendants() as RectNode[];
155155
}, [tree, size]);
156156

157157
// Set of nodeIds in the selected depth-1 subtree (for solid highlight).

vortex-web/src/components/explorer/ExplorerShell.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const mockFileState: VortexFileState = {
3131
function ExplorerPage() {
3232
return (
3333
<div className="flex flex-col h-screen bg-vortex-white dark:bg-vortex-black">
34-
<FileHeader />
34+
<FileHeader onClose={() => {}} />
3535
<MainArea />
3636
<StatusBar />
3737
</div>

vortex-web/tsconfig.app.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsBuildInfo",
44
"target": "ES2020",
55
"useDefineForClassFields": true,
6-
"lib": ["ES2020", "DOM", "DOM.Iterable"],
6+
"lib": ["ES2022", "DOM", "DOM.Iterable"],
77
"module": "ESNext",
88
"skipLibCheck": true,
99

0 commit comments

Comments
 (0)