Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions dev-server/containers/App/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,9 @@ export default function App({
contacts={phone.contacts}
/>
)} />
<Route
path="/meeting"
/>
</Route>
</Route>
</Router>
Expand Down
93 changes: 70 additions & 23 deletions dev-server/containers/MainView/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,33 @@ import { connect } from 'react-redux';
import dynamicsFont from '../../../src/assets/DynamicsFont/DynamicsFont.scss';
import TabNavigationView from '../../../src/components/TabNavigationView';
import RouterInteraction from '../../../src/modules/RouterInteraction';
import DialPadIcon from '../../../src/assets/images/DialPadNav.svg';
import CallsIcon from '../../../src/assets/images/Calls.svg';
import HistoryIcon from '../../../src/assets/images/CallHistory.svg';
import MessageIcon from '../../../src/assets/images/Messages.svg';
import ComposeTextIcon from '../../../src/assets/images/ComposeText.svg';
import MoreMenuIcon from '../../../src/assets/images/MoreMenu.svg';
import ContactIcon from '../../../src/assets/images/Contact.svg';
import MeetingIcon from '../../../src/assets/images/Meeting.svg';
import ConferenceIcon from '../../../src/assets/images/Conference.svg';
import SettingsIcon from '../../../src/assets/images/Settings.svg';

import DialPadHoverIcon from '../../../src/assets/images/DialPadHover.svg';
import CallsHoverIcon from '../../../src/assets/images/CallsHover.svg';
import HistoryHoverIcon from '../../../src/assets/images/CallHistoryHover.svg';
import MessageHoverIcon from '../../../src/assets/images/MessagesHover.svg';
import ComposeTextHoverIcon from '../../../src/assets/images/ComposeTextHover.svg';
import MoreMenuHoverIcon from '../../../src/assets/images/MoreMenuHover.svg';
import ContactHoverIcon from '../../../src/assets/images/ContactHover.svg';
import MeetingHoverIcon from '../../../src/assets/images/MeetingHover.svg';
import ConferenceHoverIcon from '../../../src/assets/images/ConferenceHover.svg';
import SettingsHoverIcon from '../../../src/assets/images/SettingsHover.svg';

import ContactNavIcon from '../../../src/assets/images/ContactsNavigation.svg';
import MeetingNavIcon from '../../../src/assets/images/MeetingNavigation.svg';
import ConferenceNavIcon from '../../../src/assets/images/ConferenceNavigation.svg';
import SettingsNavIcon from '../../../src/assets/images/SettingsNavigation.svg';


function getTabs({
showMessages,
Expand All @@ -13,29 +40,29 @@ function getTabs({
}) {
return [
{
icon: <span className={dynamicsFont.dial} />,
activeIcon: <span className={dynamicsFont.dialHover} />,
icon: DialPadIcon,
activeIcon: DialPadHoverIcon,
label: 'Dial Pad',
path: '/dialer',
},
{
icon: <span className={dynamicsFont.active} />,
activeIcon: <span className={dynamicsFont.activeHover} />,
icon: CallsIcon,
activeIcon: CallsHoverIcon,
label: 'Calls',
path: '/calls',
isActive: currentPath => (
currentPath === '/calls' || currentPath === '/calls/active'
),
},
{
icon: <span className={dynamicsFont.history} />,
activeIcon: <span className={dynamicsFont.historyHover} />,
icon: HistoryIcon,
activeIcon: HistoryHoverIcon,
label: 'History',
path: '/history',
},
showMessages && {
icon: <span className={dynamicsFont.message} />,
activeIcon: <span className={dynamicsFont.messageHover} />,
icon: MessageIcon,
activeIcon: MessageHoverIcon,
label: 'Messages',
path: '/messages',
noticeCounts: unreadCounts,
Expand All @@ -44,42 +71,62 @@ function getTabs({
),
},
showComposeText && {
icon: <span className={dynamicsFont.composeText} />,
activeIcon: <span className={dynamicsFont.composeTextHover} />,
icon: ComposeTextIcon,
activeIcon: ComposeTextHoverIcon,
label: 'Compose Text',
path: '/composeText',
},
showConference && {
icon: <span className={dynamicsFont.conference} />,
activeIcon: <span className={dynamicsFont.conferenceHover} />,
label: 'Conference',
path: '/conference',
},
{
icon: <span className={dynamicsFont.menu} />,
activeIcon: <span className={dynamicsFont.menuHover} />,
icon: ({ currentPath }) => {
if (currentPath === '/contacts') {
return <ContactNavIcon />;
} else if (currentPath === '/settings') {
return <SettingsNavIcon />;
} else if (currentPath === '/meeting') {
return <MeetingNavIcon />;
} else if (currentPath === '/conference') {
return <ConferenceNavIcon />;
}
return <MoreMenuIcon />;
},
activeIcon: MoreMenuHoverIcon,
label: 'More Menu',
virtualPath: '!moreMenu',
isActive: (currentPath, currentVirtualPath) => (
currentVirtualPath === '!moreMenu'
),
childTabs: [
{
icon: <span className={dynamicsFont.portrait} />,
activeIcon: <span className={dynamicsFont.portrait} />,
icon: ContactIcon,
activeIcon: ContactHoverIcon,
label: 'Contacts',
path: '/contacts',
isActive: currentPath => (
currentPath.substr(0, 9) === '/contacts'
),
},
{
icon: MeetingIcon,
activeIcon: MeetingHoverIcon,
label: 'Schedule Meeting',
path: '/meeting',
},
showConference && {
icon: ConferenceIcon,
activeIcon: ConferenceHoverIcon,
label: 'Schedule Conference',
path: '/conference',
},
{
icon: <span className={dynamicsFont.setting} />,
activeIcon: <span className={dynamicsFont.settingHover} />,
icon: SettingsIcon,
activeIcon: SettingsHoverIcon,
label: 'Settings',
path: '/settings',
isActive: currentPath => (
currentPath.substr(0, 9) === '/settings'
),
},
],
].filter(x => !!x),
},
].filter(x => !!x);
}
Expand Down
3 changes: 3 additions & 0 deletions src/assets/images/CallHistory.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/assets/images/CallHistoryHover.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/assets/images/Calls.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/assets/images/CallsHover.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/assets/images/ComposeText.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/assets/images/ComposeTextHover.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/assets/images/Conference.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/assets/images/ConferenceNavigation.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/assets/images/Contact.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/assets/images/ContactHover.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/assets/images/ContactsNavigation.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/assets/images/DialPadHover.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/assets/images/DialPadNav.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading