Feat: Dial section

Still WIP
This commit is contained in:
Taso committed 2021-01-18 14:30:32 -05:00
1 parent 5a9707ae3c
commit d6e9a85b40
8 files changed
+221 -4

No files matched your search

+14 -2
View File
@@ -2,9 +2,12 @@ import React from 'react';
import { AppWrapper } from '../../../ui/components';
import { AppTitle } from '../../../ui/components/AppTitle';
import { AppContent } from '../../../ui/components/AppContent';
import { DialerHistory } from './DialerHistory';
import { DialerHistory } from './views/DialerHistory';
import { useDialerHistory } from '../hooks/useDialerHistory';
import { useApp } from '../../../os/apps/hooks/useApps';
import { Switch, Route } from 'react-router-dom';
import DialPage from './views/DialPage';
import DialerNavBar from './DialerNavBar';
export const DialerApp = () => {
const { history } = useDialerHistory();
@@ -13,8 +16,17 @@ export const DialerApp = () => {
<AppWrapper>
<AppTitle app={dialer} />
<AppContent>
<DialerHistory calls={history} />
<Switch>
<Route path='/phone/dial'>
<DialPage />
</Route>
<Route path='/phone'>
<DialerHistory calls={history} />
</Route>
{/*<Route path='/phone/contacts'></Route>*/}
</Switch>
</AppContent>
<DialerNavBar />
</AppWrapper>
);
};