This commit is contained in:
David Langley 2025-11-04 19:12:09 +00:00
parent 438c1383df
commit b0ad05fa8e

View File

@ -63,7 +63,10 @@ function getLabel(ts: number, locale: string, disableRelativeTimestamps: boolean
* Timeline separator component to render within a MessagePanel bearing the date of the ts given
*/
export const DateSeparator: React.FC<Props> = ({ ts, locale = "en", disableRelativeTimestamps = false, className }) => {
const label = useMemo(() => getLabel(ts, locale, disableRelativeTimestamps), [ts, locale, disableRelativeTimestamps]);
const label = useMemo(
() => getLabel(ts, locale, disableRelativeTimestamps),
[ts, locale, disableRelativeTimestamps],
);
return (
<div