refactor(web): remove typescript
This commit is contained in:
11
packages/web/src/hooks/useRoles.ee.js
Normal file
11
packages/web/src/hooks/useRoles.ee.js
Normal file
@@ -0,0 +1,11 @@
|
||||
import { useQuery } from '@apollo/client';
|
||||
import { GET_ROLES } from 'graphql/queries/get-roles.ee';
|
||||
export default function useRoles() {
|
||||
const { data, loading } = useQuery(GET_ROLES, {
|
||||
context: { autoSnackbar: false },
|
||||
});
|
||||
return {
|
||||
roles: data?.getRoles || [],
|
||||
loading,
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user