feat: add for you column

This commit is contained in:
2024-01-20 09:06:00 +07:00
parent a3460418f6
commit b726ae3c7c
25 changed files with 511 additions and 91 deletions

View File

@@ -13,7 +13,7 @@ export function Timeline({ column }: { column: IColumn }) {
const queryClient = useQueryClient();
const since = useRef(Math.floor(Date.now() / 1000));
const refreshTimeline = async (events: NDKEvent[]) => {
const refresh = async (events: NDKEvent[]) => {
const uniqEvents = new Set(events);
await queryClient.setQueryData(
[colKey],
@@ -40,7 +40,7 @@ export function Timeline({ column }: { column: IColumn }) {
: ark.account.contacts,
since: since.current,
}}
onClick={refreshTimeline}
onClick={refresh}
/>
<Column.Content>
<Column.Route path="/" element={<HomeRoute colKey={colKey} />} />