mirror of
https://github.com/lingble/twenty.git
synced 2025-10-30 04:12:28 +00:00
Rename People type to Person
This commit is contained in:
@@ -14,7 +14,7 @@ import { createColumnHelper } from '@tanstack/react-table';
|
|||||||
import styled from '@emotion/styled';
|
import styled from '@emotion/styled';
|
||||||
import TableHeader from '../../components/table/TableHeader';
|
import TableHeader from '../../components/table/TableHeader';
|
||||||
|
|
||||||
type People = {
|
type Person = {
|
||||||
fullName: string;
|
fullName: string;
|
||||||
email: string;
|
email: string;
|
||||||
company: Company;
|
company: Company;
|
||||||
@@ -33,7 +33,7 @@ const StyledPeopleContainer = styled.div`
|
|||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
const defaultData: Array<People> = [
|
const defaultData: Array<Person> = [
|
||||||
{
|
{
|
||||||
fullName: 'Alexandre Prot',
|
fullName: 'Alexandre Prot',
|
||||||
email: 'alexandre@qonto.com',
|
email: 'alexandre@qonto.com',
|
||||||
@@ -81,7 +81,7 @@ const defaultData: Array<People> = [
|
|||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
const columnHelper = createColumnHelper<People>();
|
const columnHelper = createColumnHelper<Person>();
|
||||||
|
|
||||||
const columns = [
|
const columns = [
|
||||||
columnHelper.accessor('fullName', {
|
columnHelper.accessor('fullName', {
|
||||||
|
|||||||
Reference in New Issue
Block a user