mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 21:06:42 +07:00
notification clicking
This commit is contained in:
parent
9b0c3dd1fb
commit
83c9900af1
4 changed files with 18 additions and 9 deletions
|
@ -171,18 +171,19 @@ export const NOTIFICATION_TYPES = {
|
|||
export type IMessageNotification = {
|
||||
type: typeof NOTIFICATION_TYPES['message'];
|
||||
content: Partial<IMessage>;
|
||||
created_at: string;
|
||||
};
|
||||
|
||||
export type ICommentNotification = {
|
||||
type: typeof NOTIFICATION_TYPES['comment'];
|
||||
content: Partial<IComment>;
|
||||
created_at: string;
|
||||
};
|
||||
|
||||
export type INodeNotification = {
|
||||
type: typeof NOTIFICATION_TYPES['node'];
|
||||
content: Partial<INode>;
|
||||
};
|
||||
|
||||
export type INotification = (IMessageNotification | ICommentNotification) & {
|
||||
created_at: string;
|
||||
};
|
||||
|
||||
export type INotification = IMessageNotification | ICommentNotification;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue