mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-26 21:28:40 +00:00
Use a hook for the ever-updating now
This commit is contained in:
@@ -18,13 +18,12 @@ export type PropsData = {
|
||||
|
||||
export type PropsHousekeeping = {
|
||||
i18n: LocalizerType;
|
||||
now: number;
|
||||
};
|
||||
|
||||
export type Props = PropsData & PropsHousekeeping;
|
||||
|
||||
export const ChangeNumberNotification: React.FC<Props> = props => {
|
||||
const { i18n, now, sender, timestamp } = props;
|
||||
const { i18n, sender, timestamp } = props;
|
||||
|
||||
return (
|
||||
<SystemMessage
|
||||
@@ -38,7 +37,7 @@ export const ChangeNumberNotification: React.FC<Props> = props => {
|
||||
i18n={i18n}
|
||||
/>
|
||||
·
|
||||
<MessageTimestamp i18n={i18n} now={now} timestamp={timestamp} />
|
||||
<MessageTimestamp i18n={i18n} timestamp={timestamp} />
|
||||
</>
|
||||
}
|
||||
icon="phone"
|
||||
|
||||
Reference in New Issue
Block a user