Skip to content

Commit

Permalink
feat: progress update
Browse files Browse the repository at this point in the history
  • Loading branch information
KatoakDR committed Aug 31, 2024
1 parent d9b54c3 commit d08047e
Show file tree
Hide file tree
Showing 2 changed files with 236 additions and 184 deletions.
4 changes: 3 additions & 1 deletion electron/renderer/components/grid/grid-item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import { useCallback, useMemo, useRef } from 'react';

export interface GridItemMetadata {
itemId: string;
title: string;
isFocused: boolean;
x: number;
y: number;
Expand Down Expand Up @@ -105,13 +106,14 @@ export const GridItem: React.FC<GridItemProps> = (
const getItemMetadata = useCallback(() => {
return {
itemId,
title: titleBarText,
isFocused,
x: x.get(),
y: y.get(),
width: width.get(),
height: height.get(),
};
}, [itemId, isFocused, x, y, width, height]);
}, [itemId, titleBarText, isFocused, x, y, width, height]);

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

0 comments on commit d08047e

Please sign in to comment.