chore(react/collections): start porting geomap

This commit is contained in:
Elian Doran
2025-09-03 23:17:35 +03:00
parent 5ea15cc7eb
commit 1969ce562a
27 changed files with 165 additions and 107 deletions

View File

@@ -4,6 +4,7 @@ import FNote from "../../entities/fnote";
import "./NoteList.css";
import { ListView, GridView } from "./legacy/ListOrGridView";
import { useEffect, useRef, useState } from "preact/hooks";
import GeoView from "./geomap";
interface NoteListProps {
note?: FNote | null;
@@ -67,6 +68,8 @@ function getComponentByViewType(note: FNote, noteIds: string[], viewType: ViewTy
return <ListView {...props} />;
case "grid":
return <GridView {...props} />;
case "geoMap":
return <GeoView {...props} />;
}
}