PLT-7: Refactoring frontend (chunk 7)

- Elegant way to include react Component into FormattedMessage
Этот коммит содержится в:
Elias Nahum
2016-01-31 12:23:16 -03:00
родитель 78314c7d4d
Коммит 5be57bc970
3 изменённых файлов: 8 добавлений и 18 удалений

Просмотреть файл

@@ -385,20 +385,12 @@ class UserSettingsGeneralTab extends React.Component {
const extraInfo = (
<span>
<FormattedMessage
id='user.settings.general.notificationsExtra1'
defaultMessage='By default, you will receive mention notifications when someone types your first name. Go to '
>
{(intro) => (
<span key='intro'>
{intro}
{notifLink}
<FormattedMessage
id='user.settings.general.notificationsExtra2'
defaultMessage=' settings to change this default.'
/>
</span>
)}
</FormattedMessage>
id='user.settings.general.notificationsExtra'
defaultMessage='By default, you will receive mention notifications when someone types your first name. Go to {notify} settings to change this default.'
values={{
notify: (notifLink)
}}
/>
</span>
);