feat: Add default sorts

This commit is contained in:
Xyphyn committed 2023-07-22 16:27:22 -07:00
1 parent 75a7e87110
commit 123336871d
6 files changed
+49 -8

No files matched your search

+8
View File
@@ -7,6 +7,10 @@ interface Settings {
instance?: string
revertColors: boolean
showInstance: boolean
defaultSort: {
sort: 'Hot' | 'TopAll' | 'Active' | 'New'
feed: 'All' | 'Subscribed' | 'Local'
}
}
const defaultSettings: Settings = {
@@ -15,6 +19,10 @@ const defaultSettings: Settings = {
markReadPosts: true,
revertColors: false,
showInstance: false,
defaultSort: {
sort: 'Active',
feed: 'Local',
},
}
export const userSettings = writable(defaultSettings)