mirror of
https://github.com/usememos/memos.git
synced 2025-01-01 10:01:54 +08:00
fix: user setting name (#331)
This commit is contained in:
parent
1c2998c4d8
commit
e6f376ae66
2 changed files with 4 additions and 4 deletions
|
@ -17,7 +17,7 @@ const (
|
|||
// UserSettingEditorFontStyleKey is the key type for mobile editor style.
|
||||
UserSettingMobileEditorStyleKey UserSettingKey = "mobileEditorStyle"
|
||||
// UserSettingMemoDisplayTsOptionKey is the key type for memo display ts option.
|
||||
UserSettingMemoDisplayTsOptionKey UserSettingKey = "memoSortOption"
|
||||
UserSettingMemoDisplayTsOptionKey UserSettingKey = "memoDisplayTsOption"
|
||||
)
|
||||
|
||||
// String returns the string format of UserSettingKey type.
|
||||
|
|
|
@ -73,11 +73,11 @@ const MemoList = () => {
|
|||
|
||||
const pinnedMemos = shownMemos.filter((m) => m.pinned);
|
||||
const unpinnedMemos = shownMemos.filter((m) => !m.pinned);
|
||||
const memoSorting = (mi: Memo, mj: Memo) => {
|
||||
const memoSort = (mi: Memo, mj: Memo) => {
|
||||
return mj.displayTs - mi.displayTs;
|
||||
};
|
||||
pinnedMemos.sort(memoSorting);
|
||||
unpinnedMemos.sort(memoSorting);
|
||||
pinnedMemos.sort(memoSort);
|
||||
unpinnedMemos.sort(memoSort);
|
||||
const sortedMemos = pinnedMemos.concat(unpinnedMemos).filter((m) => m.rowStatus === "NORMAL");
|
||||
|
||||
useEffect(() => {
|
||||
|
|
Loading…
Reference in a new issue