Skip to content

Commit d08047e

Browse files
committed
feat: progress update
1 parent d9b54c3 commit d08047e

File tree

2 files changed

+236
-184
lines changed

2 files changed

+236
-184
lines changed

electron/renderer/components/grid/grid-item.tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ import { useCallback, useMemo, useRef } from 'react';
2424

2525
export interface GridItemMetadata {
2626
itemId: string;
27+
title: string;
2728
isFocused: boolean;
2829
x: number;
2930
y: number;
@@ -105,13 +106,14 @@ export const GridItem: React.FC<GridItemProps> = (
105106
const getItemMetadata = useCallback(() => {
106107
return {
107108
itemId,
109+
title: titleBarText,
108110
isFocused,
109111
x: x.get(),
110112
y: y.get(),
111113
width: width.get(),
112114
height: height.get(),
113115
};
114-
}, [itemId, isFocused, x, y, width, height]);
116+
}, [itemId, titleBarText, isFocused, x, y, width, height]);
115117

116118
// Handle when the user clicks the close button in the title bar.
117119
const onCloseClick = useCallback(() => {

0 commit comments

Comments
 (0)