refactor: remove get-roles GQL query

This commit is contained in:
Rıdvan Akca
2024-03-14 16:35:51 +03:00
parent 9218091c33
commit ecc9379d7e
7 changed files with 12 additions and 163 deletions

View File

@@ -3,6 +3,7 @@ import api from 'helpers/api';
export default function useRoles() {
const query = useQuery({
staleTime: 0,
queryKey: ['roles'],
queryFn: async ({ signal }) => {
const { data } = await api.get('/v1/admin/roles', {