feat: add for you column
This commit is contained in:
@@ -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} />} />
|
||||
|
||||
Reference in New Issue
Block a user