refactor: switch posts to barrel export

This commit is contained in:
James Xylight committed 2025-09-07 10:20:04 -07:00
1 parent 0281e6f56a
commit bb30a86dc4
47 files changed
+424 -528

No files matched your search

+10 -12
View File
@@ -2,18 +2,16 @@ import { browser } from '$app/environment'
import type { Community } from '$lib/client/types'
interface SessionStorage {
lastSeenCommunity: Community | undefined
postDraft:
| {
community: Community | null
title: string
body: string
image: FileList | null
url: string | undefined
nsfw: boolean
loading: boolean
}
| undefined
lastSeenCommunity?: Community
postDraft?: {
community: Community | null
title: string
body: string
image: FileList | null
url?: string
nsfw: boolean
loading: boolean
}
}
export const setSessionStorage = (