mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-05 12:16:53 +02:00
prettier
This commit is contained in:
parent
438c1383df
commit
b0ad05fa8e
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user