-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4b82ac3
commit a001882
Showing
17 changed files
with
277 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
// Copyright 2021 Signal Messenger, LLC | ||
// SPDX-License-Identifier: AGPL-3.0-only | ||
|
||
import React from 'react'; | ||
|
||
import { ConversationType } from '../../state/ducks/conversations'; | ||
import { LocalizerType } from '../../types/Util'; | ||
import { Intl } from '../Intl'; | ||
|
||
import { Timestamp } from './Timestamp'; | ||
import { Emojify } from './Emojify'; | ||
|
||
export type PropsData = { | ||
sender: ConversationType; | ||
timestamp: number; | ||
}; | ||
|
||
export type PropsHousekeeping = { | ||
i18n: LocalizerType; | ||
}; | ||
|
||
export type Props = PropsData & PropsHousekeeping; | ||
|
||
const CSS_MODULE = 'module-change-number-notification'; | ||
|
||
export const ChangeNumberNotification: React.FC<Props> = props => { | ||
const { i18n, sender, timestamp } = props; | ||
|
||
return ( | ||
<div className={CSS_MODULE}> | ||
<span className={`${CSS_MODULE}__icon`} /> | ||
<Intl | ||
id="ChangeNumber--notification" | ||
components={{ | ||
sender: <Emojify text={sender.firstName || sender.title} />, | ||
}} | ||
i18n={i18n} | ||
/> | ||
· | ||
<Timestamp i18n={i18n} timestamp={timestamp} /> | ||
</div> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.