mirror of
https://github.com/desktop/desktop
synced 2024-09-19 08:02:22 +00:00
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:
parent
5adaec9d93
commit
5a5efe4677
|
@ -227,7 +227,7 @@ function renderRelativeTime(date: Date) {
|
|||
return (
|
||||
<>
|
||||
{` • `}
|
||||
<RelativeTime date={date} abbreviate={true} />
|
||||
<RelativeTime date={date} />
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
|
|
@ -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`
|
||||
|
|
Loading…
Reference in a new issue