Skip to content
Snippets Groups Projects
Commit 5522cab7 authored by Rafael László's avatar Rafael László :speech_balloon:
Browse files

reorder util functions

parent b6401737
No related branches found
No related tags found
No related merge requests found
Pipeline #5571 failed
...@@ -6,8 +6,8 @@ import { Group } from '../../types/graphqlSchema'; ...@@ -6,8 +6,8 @@ import { Group } from '../../types/graphqlSchema';
import GroupIcon from '@material-ui/icons/Group'; import GroupIcon from '@material-ui/icons/Group';
import React from 'react'; import React from 'react';
import { StyledLink } from '../utils/StyledLink'; import { StyledLink } from '../utils/StyledLink';
import { convertResponseToTable } from '../utils/convertResponseToTable'; import { convertResponseToTable } from '../../utils/convertResponseToTable';
import { getMemberStateString } from '../utils/getMemberStateString'; import { getMemberStateString } from '../../utils/getMemberStateString';
import { useQuery } from '@apollo/client'; import { useQuery } from '@apollo/client';
export const GroupsTable: React.FC = () => { export const GroupsTable: React.FC = () => {
......
...@@ -7,7 +7,7 @@ import GroupIcon from '@material-ui/icons/Group'; ...@@ -7,7 +7,7 @@ import GroupIcon from '@material-ui/icons/Group';
import React from 'react'; import React from 'react';
import SettingsIcon from '@material-ui/icons/Settings'; import SettingsIcon from '@material-ui/icons/Settings';
import { StyledLink } from '../utils/StyledLink'; import { StyledLink } from '../utils/StyledLink';
import { getMemberStateString } from '../utils/getMemberStateString'; import { getMemberStateString } from '../../utils/getMemberStateString';
import { useHistory } from 'react-router-dom'; import { useHistory } from 'react-router-dom';
import { useQuery } from '@apollo/client'; import { useQuery } from '@apollo/client';
......
import { Group } from '../../types/graphqlSchema'; import { Group } from '../types/graphqlSchema';
export const convertResponseToTable = (rows: Partial<Group>[] | undefined): Partial<Group>[] => { export const convertResponseToTable = (rows: Partial<Group>[] | undefined): Partial<Group>[] => {
if (!rows) return []; if (!rows) return [];
......
import { GroupRole, Member, MemberState } from '../../types/graphqlSchema'; import { GroupRole, Member, MemberState } from '../types/graphqlSchema';
const isApplicantString = 'Elbírálás alatt'; const isApplicantString = 'Elbírálás alatt';
const isBannedString = 'Kitíltott'; const isBannedString = 'Kitíltott';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment