fix: memory lane assets in ascending order (#8309)

* fix: memory lane asset order

* chore: deprecate title

* chore: open-api

* chore: rename years => yearsAgo
This commit is contained in:
Jason Rasmussen 2024-03-27 16:14:29 -04:00 committed by GitHub
parent 13b11a39a9
commit 9fe80c25eb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 65 additions and 29 deletions

View file

@ -277,3 +277,5 @@ export const asyncTimeout = (ms: number) => {
export const handlePromiseError = <T>(promise: Promise<T>): void => {
promise.catch((error) => console.error(`[utils.ts]:handlePromiseError ${error}`, error));
};
export const memoryLaneTitle = (yearsAgo: number) => `${yearsAgo} ${yearsAgo ? 'years' : 'year'} since...`;