From 5be57bc970ebe72ecae3d421e75e3e418c479bc7 Mon Sep 17 00:00:00 2001 From: Elias Nahum Date: Sun, 31 Jan 2016 12:23:16 -0300 Subject: PLT-7: Refactoring frontend (chunk 7) - Elegant way to include react Component into FormattedMessage --- .../user_settings/user_settings_general.jsx | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) (limited to 'web/react') diff --git a/web/react/components/user_settings/user_settings_general.jsx b/web/react/components/user_settings/user_settings_general.jsx index 8052347a0..f20b4b807 100644 --- a/web/react/components/user_settings/user_settings_general.jsx +++ b/web/react/components/user_settings/user_settings_general.jsx @@ -385,20 +385,12 @@ class UserSettingsGeneralTab extends React.Component { const extraInfo = ( - {(intro) => ( - - {intro} - {notifLink} - - - )} - + 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) + }} + /> ); -- cgit v1.2.3-1-g7c22