mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
Add email app UI
This commit is contained in:
1 parent
804c9982b2
commit
6569f94cd5
7 files changed
+212
-13
No files matched your search
@@ -1,4 +1,6 @@
|
||||
import { useSetRecoilState } from 'recoil';
|
||||
import { IEmail } from '../../../common/typings/email';
|
||||
import InjectDebugData from '../../../os/debug/InjectDebugData';
|
||||
import { useNuiEvent } from '../../../os/nui-events/hooks/useNuiEvent';
|
||||
import { emailState } from './state';
|
||||
|
||||
@@ -7,3 +9,84 @@ export const useEmailService = () => {
|
||||
|
||||
useNuiEvent('EMAIL', 'phone:fetchAllEmailsSuccess', setEmails);
|
||||
};
|
||||
|
||||
InjectDebugData<IEmail[]>([
|
||||
{
|
||||
app: 'EMAIL',
|
||||
method: 'phone:fetchAllEmailsSuccess',
|
||||
data: [
|
||||
{
|
||||
id: 1,
|
||||
subject: 'Try this great app!',
|
||||
body: 'Hey did you try this email app? Looking good bruh',
|
||||
receivers: ['[email protected]'],
|
||||
sender: '[email protected]',
|
||||
sendDate: Date.now() / 1000,
|
||||
isRead: false,
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
subject: 'Try this great app!',
|
||||
body: 'Hey did you try this email app? Looking good bruh',
|
||||
receivers: ['[email protected]'],
|
||||
sender: '[email protected]',
|
||||
sendDate: Date.now() / 1000,
|
||||
isRead: false,
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
subject: 'Try this great app!',
|
||||
body: 'Hey did you try this email app? Looking good bruh',
|
||||
receivers: ['[email protected]'],
|
||||
sender: '[email protected]',
|
||||
sendDate: Date.now() / 1000,
|
||||
isRead: true,
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
subject: 'Try this great app!',
|
||||
body: 'Hey did you try this email app? Looking good bruh',
|
||||
receivers: ['[email protected]'],
|
||||
sender: '[email protected]',
|
||||
sendDate: Date.now() / 1000,
|
||||
isRead: true,
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
subject: 'Try this great app!',
|
||||
body: 'Hey did you try this email app? Looking good bruh',
|
||||
receivers: ['[email protected]'],
|
||||
sender: '[email protected]',
|
||||
sendDate: Date.now() / 1000,
|
||||
isRead: true,
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
subject: 'Try this great app!',
|
||||
body: 'Hey did you try this email app? Looking good bruh',
|
||||
receivers: ['[email protected]'],
|
||||
sender: '[email protected]',
|
||||
sendDate: Date.now() / 1000,
|
||||
isRead: false,
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
subject: 'Try this great app!',
|
||||
body: 'Hey did you try this email app? Looking good bruh',
|
||||
receivers: ['[email protected]'],
|
||||
sender: '[email protected]',
|
||||
sendDate: Date.now() / 1000,
|
||||
isRead: false,
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
subject: 'Try this great app!',
|
||||
body: 'Hey did you try this email app? Looking good bruh',
|
||||
receivers: ['[email protected]'],
|
||||
sender: '[email protected]',
|
||||
sendDate: Date.now() / 1000,
|
||||
isRead: false,
|
||||
},
|
||||
],
|
||||
},
|
||||
]);
|
||||
Reference in new issue
Block a user