diff options
author | Christopher Speller <crspeller@gmail.com> | 2016-03-24 11:05:13 -0400 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2016-03-24 11:05:13 -0400 |
commit | b62e29ba9cd6183551266da05b9b602a4415d738 (patch) | |
tree | ea759d6d46cc49386bcd66a8b9b8542f75b1c77e /webapp/components/sidebar_right_menu.jsx | |
parent | 68dad8c7345b12c7d0b10709ddc1873d4b40163e (diff) | |
download | chat-b62e29ba9cd6183551266da05b9b602a4415d738.tar.gz chat-b62e29ba9cd6183551266da05b9b602a4415d738.tar.bz2 chat-b62e29ba9cd6183551266da05b9b602a4415d738.zip |
Moving all links and redirects to react-router
Diffstat (limited to 'webapp/components/sidebar_right_menu.jsx')
-rw-r--r-- | webapp/components/sidebar_right_menu.jsx | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/webapp/components/sidebar_right_menu.jsx b/webapp/components/sidebar_right_menu.jsx index 05e2054ea..7c5e895e8 100644 --- a/webapp/components/sidebar_right_menu.jsx +++ b/webapp/components/sidebar_right_menu.jsx @@ -101,15 +101,15 @@ export default class SidebarRightMenu extends React.Component { if (isSystemAdmin && !Utils.isMobile()) { consoleLink = ( <li> - <a - href={'/admin_console'} + <Link + to={'/admin_console'} > <i className='fa fa-wrench'></i> <FormattedMessage id='sidebar_right_menu.console' defaultMessage='System Console' /> - </a> + </Link> </li> ); } @@ -127,16 +127,16 @@ export default class SidebarRightMenu extends React.Component { if (global.window.mm_config.HelpLink) { helpLink = ( <li> - <a + <Link target='_blank' - href={global.window.mm_config.HelpLink} + to={global.window.mm_config.HelpLink} > <i className='fa fa-question'></i> <FormattedMessage id='sidebar_right_menu.help' defaultMessage='Help' /> - </a> + </Link> </li> ); } @@ -145,16 +145,16 @@ export default class SidebarRightMenu extends React.Component { if (global.window.mm_config.ReportAProblemLink) { reportLink = ( <li> - <a + <Link target='_blank' - href={global.window.mm_config.ReportAProblemLink} + to={global.window.mm_config.ReportAProblemLink} > <i className='fa fa-phone'></i> <FormattedMessage id='sidebar_right_menu.report' defaultMessage='Report a Problem' /> - </a> + </Link> </li> ); } @@ -164,10 +164,12 @@ export default class SidebarRightMenu extends React.Component { id='sidebar-menu' > <div className='team__header theme'> - <a + <Link className='team__name' - href='/channels/town-square' - >{teamDisplayName}</a> + to='/channels/town-square' + > + {teamDisplayName} + </Link> </div> <div className='nav-pills__container'> |