11import React , { Component } from 'react' ;
22// eslint-disable-next-line
33import TabNavigationView from 'ringcentral-widget/components/TabNavigationView' ;
4- import dynamicsFont from 'ringcentral-widget/assets/DynamicsFont/DynamicsFont.scss' ;
4+ import DialPadIcon from 'ringcentral-widget/assets/images/DialPadNav.svg' ;
5+ import CallsIcon from 'ringcentral-widget/assets/images/Calls.svg' ;
6+ import MessageIcon from 'ringcentral-widget/assets/images/Messages.svg' ;
7+ import SettingsIcon from 'ringcentral-widget/assets/images/Settings.svg' ;
8+ import ContactIcon from 'ringcentral-widget/assets/images/Contact.svg' ;
9+ import MoreMenuIcon from 'ringcentral-widget/assets/images/MoreMenu.svg' ;
10+
11+ import DialPadHoverIcon from 'ringcentral-widget/assets/images/DialPadHover.svg' ;
12+ import CallsHoverIcon from 'ringcentral-widget/assets/images/CallsHover.svg' ;
13+ import MessageHoverIcon from 'ringcentral-widget/assets/images/MessagesHover.svg' ;
14+ import SettingsHoverIcon from 'ringcentral-widget/assets/images/SettingsHover.svg' ;
15+ import ContactHoverIcon from 'ringcentral-widget/assets/images/ContactHover.svg' ;
16+ import MoreMenuHoverIcon from 'ringcentral-widget/assets/images/MoreMenuHover.svg' ;
17+
18+ import ContactNavIcon from 'ringcentral-widget/assets/images/ContactsNavigation.svg' ;
19+ import SettingsNavIcon from 'ringcentral-widget/assets/images/SettingsNavigation.svg' ;
520
621const tabs = [
722 {
8- icon : < span className = { dynamicsFont . dial } /> ,
9- activeIcon : < span className = { dynamicsFont . dialHover } /> ,
23+ icon : DialPadIcon ,
24+ activeIcon : DialPadHoverIcon ,
1025 label : 'Dial Pad' ,
1126 path : '/dialer' ,
1227 } ,
1328 {
14- icon : < span className = { dynamicsFont . active } /> ,
15- activeIcon : < span className = { dynamicsFont . activeHover } /> ,
29+ icon : CallsIcon ,
30+ activeIcon : CallsHoverIcon ,
1631 label : 'Calls' ,
1732 path : '/calls' ,
1833 isActive : currentPath => (
1934 currentPath === '/calls' || currentPath === '/calls/active'
2035 ) ,
2136 } ,
2237 {
23- icon : < span className = { dynamicsFont . message } /> ,
24- activeIcon : < span className = { dynamicsFont . messageHover } /> ,
38+ icon : MessageIcon ,
39+ activeIcon : MessageHoverIcon ,
2540 label : 'Messages' ,
2641 path : '/messages' ,
2742 noticeCounts : 1 ,
@@ -30,23 +45,30 @@ const tabs = [
3045 ) ,
3146 } ,
3247 {
33- icon : < span className = { dynamicsFont . menu } /> ,
34- activeIcon : < span className = { dynamicsFont . menuHover } /> ,
48+ icon : ( { currentPath } ) => {
49+ if ( currentPath === '/contacts' ) {
50+ return < ContactNavIcon /> ;
51+ } else if ( currentPath === '/settings' ) {
52+ return < SettingsNavIcon /> ;
53+ }
54+ return < MoreMenuIcon /> ;
55+ } ,
56+ activeIcon : MoreMenuHoverIcon ,
3557 label : 'More Menu' ,
3658 virtualPath : '!moreMenu' ,
3759 isActive : ( currentPath , currentVirtualPath ) => (
3860 currentVirtualPath === '!moreMenu'
3961 ) ,
4062 childTabs : [
4163 {
42- icon : < span className = { dynamicsFont . portrait } /> ,
43- activeIcon : < span className = { dynamicsFont . portrait } /> ,
64+ icon : ContactIcon ,
65+ activeIcon : ContactHoverIcon ,
4466 label : 'Contacts' ,
4567 path : '/contacts' ,
4668 } ,
4769 {
48- icon : < span className = { dynamicsFont . setting } /> ,
49- activeIcon : < span className = { dynamicsFont . settingHover } /> ,
70+ icon : SettingsIcon ,
71+ activeIcon : SettingsHoverIcon ,
5072 label : 'Settings' ,
5173 path : '/settings' ,
5274 isActive : currentPath => (
0 commit comments