Skip to content

Commit

Permalink
#235 Increate the Pagination for Teams
Browse files Browse the repository at this point in the history
  • Loading branch information
kevenleone committed May 24, 2021
1 parent d6fc327 commit 5c6aa86
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion packages/frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@monorepo/frontend",
"version": "1.1.1",
"version": "1.1.2",
"private": true,
"scripts": {
"dev": "next dev",
Expand Down
4 changes: 2 additions & 2 deletions packages/frontend/src/graphql/queries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const getUserByLogin = gql`
`;

const allRole = `
getAllRole {
getAllRole(data: {pageSize: 50}) {
rows {
id
name
Expand All @@ -72,7 +72,7 @@ const allOffice = `
`;

const allTeam = `
getAllTeam {
getAllTeam(data: {pageSize: 50}) {
rows {
id
name
Expand Down
16 changes: 8 additions & 8 deletions packages/frontend/src/pages/profile/office-details.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ type RequestProps = {
};

type RequestGetStartedProps = {
departments: BasicQuery[];
offices: Office[];
roles: BasicQuery[];
teams: Team[];
departments: { rows: BasicQuery[] };
offices: { rows: Office[] };
roles: { rows: BasicQuery[] };
teams: { rows: Team[] };
};

interface GetStartedProps<T> extends RequestGetStartedProps {
Expand Down Expand Up @@ -95,10 +95,10 @@ const GetStarted = <T,>({
<OfficeDetailsBody
form={form}
setForm={setForm}
departments={departments}
teams={teams}
roles={roles}
offices={offices}
departments={departments.rows}
teams={teams.rows}
roles={roles.rows}
offices={offices.rows}
/>

<ClayButton displayType="secondary" className="mr-2" onClick={onCancel}>
Expand Down

0 comments on commit 5c6aa86

Please sign in to comment.