feat: add notification UI
showPopup was also refactored to be better
This commit is contained in:
43
frontend/src/shared/graphql/topNavbar.ts
Normal file
43
frontend/src/shared/graphql/topNavbar.ts
Normal file
@ -0,0 +1,43 @@
|
||||
import gql from 'graphql-tag';
|
||||
|
||||
export const TOP_NAVBAR_QUERY = gql`
|
||||
query topNavbar {
|
||||
notifications {
|
||||
createdAt
|
||||
read
|
||||
id
|
||||
entity {
|
||||
id
|
||||
type
|
||||
name
|
||||
}
|
||||
actor {
|
||||
id
|
||||
type
|
||||
name
|
||||
}
|
||||
actionType
|
||||
}
|
||||
me {
|
||||
user {
|
||||
id
|
||||
fullName
|
||||
profileIcon {
|
||||
initials
|
||||
bgColor
|
||||
url
|
||||
}
|
||||
}
|
||||
teamRoles {
|
||||
teamID
|
||||
roleCode
|
||||
}
|
||||
projectRoles {
|
||||
projectID
|
||||
roleCode
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
export default TOP_NAVBAR_QUERY;
|
Reference in New Issue
Block a user