diff options
| author | Armand Philippot <git@armandphilippot.com> | 2022-05-09 18:19:38 +0200 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2022-05-09 19:41:02 +0200 |
| commit | 0d59a6d2995b4119865271ed1908ede0bb96497c (patch) | |
| tree | 67688e41b7aa253aa58cc08aa360431b07382f9d /src/utils | |
| parent | 339c6957fe92c4ec1809159f09c55201d3794c18 (diff) | |
refactor: rewrite DescriptionList and Meta components
The meta can have different layout. The previous implementation was not
enough to easily change the layout. Also, I prefer to restrict the meta
types and it prevents me to repeat myself for the labels.
Diffstat (limited to 'src/utils')
| -rw-r--r-- | src/utils/helpers/dates.ts | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/utils/helpers/dates.ts b/src/utils/helpers/dates.ts index fa167a7..cb56ad2 100644 --- a/src/utils/helpers/dates.ts +++ b/src/utils/helpers/dates.ts @@ -1,4 +1,3 @@ -import { Dates } from '@ts/types/app'; import { settings } from '@utils/config'; /** @@ -39,17 +38,3 @@ export const getFormattedTime = ( return locale === 'fr' ? formattedTime.replace(':', 'h') : formattedTime; }; - -/** - * Retrieve a Dates object. - * - * @param publication - The publication date. - * @param update - The update date. - * @returns {Dates} A Dates object. - */ -export const getDates = (publication: string, update: string): Dates => { - return { - publication: getFormattedDate(publication), - update: getFormattedDate(update), - }; -}; |
