Files
new-phone-who-dis/phone/src/apps/contacts/components/ContactsApp.tsx
T
Taso 8ca8b1b5fe tweak(phone/call-modal): Tweaked appearance of call modal (#178)
Correct actions will now display if calling another player.

Also added ringing flavor text when the person calling is the transmitter.
2021-04-03 18:02:47 -04:00

60 lines
1.6 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';
import { ContactEvents } from '../../../../../typings/contact';
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: ContactEvents.SEND_CONTACTS,
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: '603-275-8373',
avatar: 'http://i.tasoagc.dev/2QYV',
},
{
id: 4,
display: 'Kidz',
number: '444-4444',
},
],
},
]);