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

Remove Group rentals page

parent 988243bb
No related branches found
No related tags found
No related merge requests found
......@@ -7,7 +7,6 @@ import { GroupDocuments } from './group/GroupDocuments';
import { GroupItems } from './group/GroupItems';
import { GroupMembers } from './group/GroupMembers';
import { GroupNotExists } from '../utils/GroupNotExists';
import { GroupRentals } from './group/GroupRentals';
import { GroupRole } from '../../types/graphqlSchema';
import { GroupStorages } from './group/GroupStorages';
import { Loader } from '../utils/Loader';
......@@ -59,17 +58,14 @@ export const GroupAdminContent: React.FC<RouteComponentProps<TParams>> = ({ matc
<Route path={`${match.url}/members`}>
<GroupMembers group={groupData?.group} filterBy={urlQuery.get('f')} />
</Route>
<Route path={`${match.url}/rentals`}>
<GroupRentals group={groupData?.group} state={urlQuery.get('s')} />
</Route>
<Route path={`${match.url}/documents`}>
<GroupDocuments group={groupData?.group} orderBy={urlQuery.get('o')} />
<Route path={`${match.url}/items`}>
<GroupItems group={groupData?.group} />
</Route>
<Route path={`${match.url}/storages`}>
<GroupStorages group={groupData?.group} />
</Route>
<Route path={`${match.url}/items`}>
<GroupItems group={groupData?.group} />
<Route path={`${match.url}/documents`}>
<GroupDocuments group={groupData?.group} orderBy={urlQuery.get('o')} />
</Route>
<Route path={`${match.url}`}>
<GroupAdminPanel group={groupData?.group} />
......
import { Group } from '../../../types/graphqlSchema';
import React from 'react';
interface TParams {
group: Partial<Group> | undefined;
state: string | null;
}
export const GroupRentals: React.FC<TParams> = ({ group, state }) => {
console.log(group?.id);
return <>filtered state = {state || 'none'}</>;
};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment