mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
Add dialer app theme | Add new contact button from dialer after you type number
This commit is contained in:
7 files changed
+76
-29
No files matched your search
@@ -10,6 +10,32 @@ import DialerNavBar from './DialerNavBar';
|
||||
import { useDialHistory } from '../hooks/useDialHistory';
|
||||
import InjectDebugData from '../../../os/debug/InjectDebugData';
|
||||
import { ContactList } from '../../contacts/components/List/ContactList';
|
||||
import { DialerThemeProvider } from '../providers/DialerThemeProvider';
|
||||
|
||||
export const DialerApp = () => {
|
||||
const history = useDialHistory();
|
||||
|
||||
const dialer = useApp('DIALER');
|
||||
return (
|
||||
<DialerThemeProvider>
|
||||
<AppWrapper>
|
||||
<AppTitle app={dialer} />
|
||||
<AppContent>
|
||||
<Switch>
|
||||
<Route path='/phone/dial'>
|
||||
<DialPage />
|
||||
</Route>
|
||||
<Route exact path='/phone'>
|
||||
<DialerHistory calls={history} />
|
||||
</Route>
|
||||
<Route path='/phone/contacts' component={ContactList}></Route>
|
||||
</Switch>
|
||||
</AppContent>
|
||||
<DialerNavBar />
|
||||
</AppWrapper>
|
||||
</DialerThemeProvider>
|
||||
);
|
||||
};
|
||||
|
||||
InjectDebugData([
|
||||
{
|
||||
@@ -29,26 +55,3 @@ InjectDebugData([
|
||||
],
|
||||
},
|
||||
]);
|
||||
|
||||
export const DialerApp = () => {
|
||||
const history = useDialHistory();
|
||||
|
||||
const dialer = useApp('DIALER');
|
||||
return (
|
||||
<AppWrapper>
|
||||
<AppTitle app={dialer} />
|
||||
<AppContent>
|
||||
<Switch>
|
||||
<Route path='/phone/dial'>
|
||||
<DialPage />
|
||||
</Route>
|
||||
<Route exact path='/phone'>
|
||||
<DialerHistory calls={history} />
|
||||
</Route>
|
||||
<Route path='/phone/contacts' component={ContactList}></Route>
|
||||
</Switch>
|
||||
</AppContent>
|
||||
<DialerNavBar />
|
||||
</AppWrapper>
|
||||
);
|
||||
};
|
||||
Reference in new issue
Block a user