(feat): add custom lint rules
(qol): update todo (chore): update licenses
This commit is contained in:
parent
bf8f449f03
commit
17db895203
28 changed files with 585 additions and 513 deletions
|
|
@ -1,4 +1,4 @@
|
|||
import * as React from "react";
|
||||
import { useRef, useState } from "react";
|
||||
import { useVirtualizer } from "@tanstack/react-virtual";
|
||||
|
||||
import Switch from "./switch";
|
||||
|
|
@ -8,14 +8,14 @@ import { Loader2 } from "lucide-react";
|
|||
import { useSession } from "@tensamin/storage/session";
|
||||
|
||||
export default function List() {
|
||||
const [category, setCategory] = React.useState<
|
||||
"conversations" | "communities"
|
||||
>("conversations");
|
||||
const [category, setCategory] = useState<"conversations" | "communities">(
|
||||
"conversations",
|
||||
);
|
||||
|
||||
const { contacts, communities } = useSession();
|
||||
const items = category === "conversations" ? contacts : communities;
|
||||
|
||||
const scrollRef = React.useRef<HTMLDivElement | null>(null);
|
||||
const scrollRef = useRef<HTMLDivElement | null>(null);
|
||||
|
||||
// TanStack Virtual is intentionally used here; React Compiler memoization is skipped.
|
||||
// eslint-disable-next-line react-hooks/incompatible-library
|
||||
|
|
|
|||
Loading…
Reference in a new issue