mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-03 22:16:54 +00:00
* Add working notifications with only twitter for now * feat(notification-bar): I didnt copy from NP * feat(notifications): Collapse when no more notifications after closing one * Improve overall messages styling code * Improve Routing performance * improve use keyboard hook * Remove unused returns * Button hover color :) * Button hover color :) x2 * Added hover style to containedPrimary msg btn * Replace custom components for custom theme providers for Messages and Contacts apps * Improve createAppThemeProvider * Improve createAppThemeProvider * Final housekeeping for messages styles * Change placeholder to label in Contacts app text fields * Fix alerts style with navigation and fix calc copy alerrt * Split Phone code for snackbar * Add more options and style Context Menu * Enable Sellout theme provider and make it work with light themes
53 lines
1.3 KiB
TypeScript
53 lines
1.3 KiB
TypeScript
import React from 'react';
|
|
import { AppWrapper } from '../../../ui/components';
|
|
import { AppTitle } from '../../../ui/components/AppTitle';
|
|
import { AppContent } from '../../../ui/components/AppContent';
|
|
import { useApp } from '../../../os/apps/hooks/useApps';
|
|
import InjectDebugData from '../../../os/debug/InjectDebugData';
|
|
import { Route } from 'react-router-dom';
|
|
|
|
import ContactsInfoPage from './views/ContactInfo';
|
|
import { ContactPage } from './views/ContactsPage';
|
|
import { ContactsThemeProvider } from '../providers/ContactsThemeProvider';
|
|
|
|
export const ContactsApp = () => {
|
|
const contacts = useApp('CONTACTS');
|
|
|
|
return (
|
|
<ContactsThemeProvider>
|
|
<AppWrapper id='contact-app'>
|
|
<AppTitle app={contacts} />
|
|
<AppContent>
|
|
<Route path='/contacts/' exact component={ContactPage} />
|
|
<Route path='/contacts/:id' exact component={ContactsInfoPage} />
|
|
</AppContent>
|
|
</AppWrapper>
|
|
</ContactsThemeProvider>
|
|
);
|
|
};
|
|
|
|
InjectDebugData([
|
|
{
|
|
app: 'CONTACTS',
|
|
method: 'setContacts',
|
|
data: [
|
|
{
|
|
id: 1,
|
|
display: 'Ruqen',
|
|
number: '555-15196',
|
|
},
|
|
{
|
|
id: 2,
|
|
display: 'Taso',
|
|
number: '215-8139',
|
|
avatar: 'http://i.tasoagc.dev/i9Ig',
|
|
},
|
|
{
|
|
id: 3,
|
|
display: 'Chip',
|
|
number: '417-8792',
|
|
},
|
|
],
|
|
},
|
|
]);
|