Skip to content

Commit

Permalink
rename recentlyUpdated to lastUpdated
Browse files Browse the repository at this point in the history
  • Loading branch information
SunsetTechuila committed Oct 13, 2023
1 parent cfe3c91 commit b0dc6da
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/logic/Utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ export const generateSortOptions = (t: (key: string) => string) => {
{ key: "stars", value: t("grid.sort.stars") },
{ key: "newest", value: t("grid.sort.newest") },
{ key: "oldest", value: t("grid.sort.oldest") },
{ key: "recentlyUpdated", value: t("grid.sort.recentlyUpdated") },
{ key: "lastUpdated", value: t("grid.sort.lastUpdated") },
{ key: "mostStale", value: t("grid.sort.mostStale") },
{ key: "a-z", value: t("grid.sort.aToZ") },
{ key: "z-a", value: t("grid.sort.zToA") },
Expand Down Expand Up @@ -655,7 +655,7 @@ export const sortCardItems = (cardItems: CardItem[] | Snippet[], sortMode: strin
case "oldest":
cardItems.sort((a, b) => compareCreated(b, a));
break;
case "recentlyUpdated":
case "lastUpdated":
cardItems.sort((a, b) => compareUpdated(a, b));
break;
case "mostStale":
Expand Down
2 changes: 1 addition & 1 deletion src/resources/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
"stars": "Stars",
"newest": "Newest",
"oldest": "Oldest",
"recentlyUpdated": "Recently Updated",
"lastUpdated": "Last Updated",
"mostStale": "Most Stale",
"aToZ": "A-Z",
"zToA": "Z-A"
Expand Down
2 changes: 1 addition & 1 deletion src/types/marketplace-types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ export type SchemeIni = {
[key: string]: ColourScheme;
};

export type SortMode = "a-z" | "z-a" | "newest" | "oldest" | "stars" | "recentlyUpdated" | "mostStale";
export type SortMode = "a-z" | "z-a" | "newest" | "oldest" | "stars" | "lastUpdated" | "mostStale";

export type Config = {
// Fetch the settings and set defaults. Used in Settings.js
Expand Down

0 comments on commit b0dc6da

Please sign in to comment.