mirror of
https://github.com/twentyhq/twenty.git
synced 2024-12-24 04:23:57 +03:00
refactor: move person types in interface
This commit is contained in:
parent
7ade04b79e
commit
b8032e9605
@ -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;
|
@ -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';
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { Person } from './types';
|
||||
import { Person } from '../../interfaces/person.interface';
|
||||
|
||||
export const defaultData: Array<Person> = [
|
||||
{
|
||||
|
@ -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}`,
|
||||
|
@ -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<Person>();
|
||||
export const peopleColumns = [
|
||||
|
Loading…
Reference in New Issue
Block a user