diff --git a/front/src/pages/people/types.ts b/front/src/interfaces/person.interface.ts similarity index 80% rename from front/src/pages/people/types.ts rename to front/src/interfaces/person.interface.ts index 4afd0aeaec..9018a51aa0 100644 --- a/front/src/pages/people/types.ts +++ b/front/src/interfaces/person.interface.ts @@ -1,5 +1,5 @@ -import { Company } from '../../interfaces/company.interface'; -import { Pipe } from '../../interfaces/pipe.interface'; +import { Company } from './company.interface'; +import { Pipe } from './pipe.interface'; export type Person = { fullName: string; diff --git a/front/src/pages/people/People.tsx b/front/src/pages/people/People.tsx index df4226800e..b5e94f4c95 100644 --- a/front/src/pages/people/People.tsx +++ b/front/src/pages/people/People.tsx @@ -4,7 +4,7 @@ import Table from '../../components/table/Table'; import styled from '@emotion/styled'; import { peopleColumns } from './people-table'; import { gql, useQuery } from '@apollo/client'; -import { GraphqlPerson, Person } from './types'; +import { GraphqlPerson, Person } from '../../interfaces/person.interface'; import { defaultData } from './default-data'; import { mapPerson } from './mapper'; diff --git a/front/src/pages/people/default-data.ts b/front/src/pages/people/default-data.ts index e071b07f81..4731d83d70 100644 --- a/front/src/pages/people/default-data.ts +++ b/front/src/pages/people/default-data.ts @@ -1,4 +1,4 @@ -import { Person } from './types'; +import { Person } from '../../interfaces/person.interface'; export const defaultData: Array = [ { diff --git a/front/src/pages/people/mapper.ts b/front/src/pages/people/mapper.ts index 5ae21b954e..cff163aa14 100644 --- a/front/src/pages/people/mapper.ts +++ b/front/src/pages/people/mapper.ts @@ -1,4 +1,4 @@ -import { GraphqlPerson, Person } from './types'; +import { GraphqlPerson, Person } from '../../interfaces/person.interface'; export const mapPerson = (person: GraphqlPerson): Person => ({ fullName: `${person.firstname} ${person.lastname}`, diff --git a/front/src/pages/people/people-table.tsx b/front/src/pages/people/people-table.tsx index b1063a7eb8..87728bace7 100644 --- a/front/src/pages/people/people-table.tsx +++ b/front/src/pages/people/people-table.tsx @@ -15,7 +15,7 @@ import Checkbox from '../../components/form/Checkbox'; import HorizontalyAlignedContainer from '../../layout/containers/HorizontalyAlignedContainer'; import CompanyChip from '../../components/chips/CompanyChip'; import PersonChip from '../../components/chips/PersonChip'; -import { Person } from './types'; +import { Person } from '../../interfaces/person.interface'; const columnHelper = createColumnHelper(); export const peopleColumns = [