mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
Feat: Dial section
Still WIP
This commit is contained in:
1 parent
5a9707ae3c
commit
d6e9a85b40
8 files changed
+221
-4
No files matched your search
@@ -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>
|
||||
);
|
||||
};
|
||||
Reference in new issue
Block a user