App and sorting updates
This commit is contained in:
@@ -16,6 +16,14 @@ export function useCommonHooks() {
|
||||
key: 'appFilter',
|
||||
defaultValue: ['All'],
|
||||
});
|
||||
const [appSort, setAppSort] = useLocalStorage<string>({
|
||||
key: 'appSort',
|
||||
defaultValue: 'A-Z',
|
||||
});
|
||||
const [bookmarkSort, setBookmarkSort] = useLocalStorage<string>({
|
||||
key: 'bookmarkSort',
|
||||
defaultValue: 'A-Z',
|
||||
});
|
||||
const [bookmarkFilter, setBookmarkFilter] = useLocalStorage<[any]>({
|
||||
key: 'bookmarkFilter',
|
||||
defaultValue: ['All'],
|
||||
@@ -114,6 +122,10 @@ export function useCommonHooks() {
|
||||
setThemeName,
|
||||
appFilter,
|
||||
setAppFilter,
|
||||
appSort,
|
||||
setAppSort,
|
||||
bookmarkSort,
|
||||
setBookmarkSort,
|
||||
bookmarkFilter,
|
||||
setBookmarkFilter,
|
||||
currentTheme,
|
||||
|
||||
Reference in New Issue
Block a user