Remove unused abbreviate prop

This was accidentally removed in 800b6e0163 but given that we've had that on prod for well over a year we figure it's better to just drop it. Abbreviated dates adds complexity for screen readers as well

Co-Authored-By: Sergio Padrino <1083228+sergiou87@users.noreply.github.com>
This commit is contained in:
Markus Olsson 2023-12-05 15:16:55 +01:00
parent 5adaec9d93
commit 5a5efe4677
2 changed files with 1 additions and 9 deletions

View file

@ -227,7 +227,7 @@ function renderRelativeTime(date: Date) {
return (
<>
{``}
<RelativeTime date={date} abbreviate={true} />
<RelativeTime date={date} />
</>
)
}

View file

@ -10,14 +10,6 @@ interface IRelativeTimeProps {
*/
readonly date: Date
/**
* For relative durations, use abbreviated units
* ('m' instead of 'minutes', 'd' instead of 'days')
*
* Defaults to `false`
*/
readonly abbreviate?: boolean
/**
* By default the RelativeTime component will start displaying a compact
* absolute date if the date is more than one week ago. Setting `onlyRelative`