design: add unified notifications button

This commit is contained in:
James Xylight committed 2025-07-04 19:02:07 -07:00
1 parent d0ade27f99
commit 3706b31fda
8 files changed
+112 -76

No files matched your search

+2 -2
View File
@@ -4,8 +4,8 @@ import type { SortType } from 'lemmy-js-client'
export async function load({ url, fetch, parent }) {
const page = Number(url.searchParams.get('page')) || 1
const type: 'comments' | 'posts' =
(url.searchParams.get('type') as 'comments' | 'posts') || 'posts'
const type: 'comments' | 'posts' | 'all' =
(url.searchParams.get('type') as 'comments' | 'posts' | 'all') || 'all'
const sort: SortType = (url.searchParams.get('sort') as SortType) || 'New'
const { my_user } = await parent()