Skip to content

Commit 6d34efe

Browse files
types note
1 parent a5ffc55 commit 6d34efe

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/renderer/components/Browser.tsx

+6
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ type BrowserSelection = {
2121
const ROW_HEIGHT = 25.5; // Fixed row height
2222
const BROWSER_WIDTH = 800; // Fixed browser width
2323

24+
/**
25+
* @TODO Refactor to use the useWindowDimensions hook. The tricky part is
26+
* that this component relies on width and height not being <undefined />
27+
* on initial render, which isn't always the case due to the way the original
28+
* window dimensions hooks works in the Main component.
29+
*/
2430
export default function Browser({ onClose }: BrowserProps) {
2531
const { width, height } = useWindowDimensions();
2632
const setFilteredLibrary = usePlayerStore(

0 commit comments

Comments
 (0)