mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 04:46:40 +07:00
add user notifications (#148)
* added notification settings * notifications: added list to profile * notifications: changed appearance for comment notifications
This commit is contained in:
parent
23701a5261
commit
a39d000ff2
27 changed files with 552 additions and 218 deletions
|
@ -28,3 +28,9 @@ export interface ISocialAccount {
|
|||
name: string;
|
||||
photo: string;
|
||||
}
|
||||
|
||||
export interface ShallowUser {
|
||||
id: number;
|
||||
username: string;
|
||||
photo: string;
|
||||
}
|
||||
|
|
16
src/types/notifications/index.ts
Normal file
16
src/types/notifications/index.ts
Normal file
|
@ -0,0 +1,16 @@
|
|||
import { ShallowUser } from '../auth';
|
||||
|
||||
export interface NotificationItem {
|
||||
id: number;
|
||||
url: string;
|
||||
type: NotificationType;
|
||||
text: string;
|
||||
user: ShallowUser;
|
||||
thumbnail: string;
|
||||
created_at: string;
|
||||
}
|
||||
|
||||
export enum NotificationType {
|
||||
Node = 'node',
|
||||
Comment = 'comment',
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue