[MM-56042] Show full timestamp with seconds in tooltip of post date (#25699)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
d23c16b9aa
Коммит
77161715fc
@@ -18,6 +18,7 @@ const POST_TOOLTIP_RANGES = [
|
||||
RelativeRanges.TODAY_TITLE_CASE,
|
||||
RelativeRanges.YESTERDAY_TITLE_CASE,
|
||||
];
|
||||
const getTimeFormat: ComponentProps<typeof Timestamp>['useTime'] = (_, {hour, minute, second}) => ({hour, minute, second});
|
||||
|
||||
type Props = {
|
||||
|
||||
@@ -105,6 +106,7 @@ export default class PostTime extends React.PureComponent<Props> {
|
||||
value={eventTime}
|
||||
ranges={POST_TOOLTIP_RANGES}
|
||||
useSemanticOutput={false}
|
||||
useTime={getTimeFormat}
|
||||
/>
|
||||
</Tooltip>
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user