Move FIXME to the correct place.

master
Tom Hacohen 4 years ago
parent 3187807842
commit 1268564b90

@ -31,6 +31,7 @@ export interface CachedItem {
content: string; content: string;
} }
// FIXME: use the ones used by e.g. Contacts/Main so ew share the cache
async function decryptItems(items: Map<string, Map<string, Etebase.CollectionItem>>) { async function decryptItems(items: Map<string, Map<string, Etebase.CollectionItem>>) {
const entries: Map<string, Map<string, CachedItem>> = new Map(); const entries: Map<string, Map<string, CachedItem>> = new Map();
for (const [colUid, col] of items.entries()) { for (const [colUid, col] of items.entries()) {
@ -52,7 +53,6 @@ interface PropsType {
collection: CachedCollection; collection: CachedCollection;
} }
// FIXME: use the ones used by e.g. Contacts/Main so ew share the cache
export default function CollectionChangeEntries(props: PropsType) { export default function CollectionChangeEntries(props: PropsType) {
const [entries, setEntries] = React.useState<Map<string, CachedItem>>(); const [entries, setEntries] = React.useState<Map<string, CachedItem>>();
const [dialog, setDialog] = React.useState<CachedItem>(); const [dialog, setDialog] = React.useState<CachedItem>();

Loading…
Cancel
Save