Add workspace members (#536)

* Add workspace members

* Remove workspace provider

* Lint
This commit is contained in:
Emilien Chauvet
2023-07-07 18:56:22 -07:00
committed by GitHub
parent 66dcc9b2e1
commit c26a7fda9a
9 changed files with 212 additions and 1 deletions

View File

@ -0,0 +1,2 @@
export * from './select';
export * from './update';

View File

@ -0,0 +1,19 @@
import { gql } from '@apollo/client';
export const GET_CURRENT_WORKSPACE = gql`
query GetCurrentWorkspace {
currentWorkspace {
id
workspaceMember {
id
user {
id
email
avatarUrl
firstName
lastName
}
}
}
}
`;

View File

@ -0,0 +1,12 @@
import { gql } from '@apollo/client';
export const UPDATE_WORKSPACE = gql`
mutation UpdateWorkspace($data: WorkspaceUpdateInput!) {
updateWorkspace(data: $data) {
id
domainName
displayName
logo
}
}
`;