refactor: rename logo to domain
This commit is contained in:
@ -1,5 +1,5 @@
|
|||||||
export interface Company {
|
export interface Company {
|
||||||
id: number;
|
id: number;
|
||||||
name: string;
|
name: string;
|
||||||
logo: string;
|
domain: string;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -48,7 +48,7 @@ const defaultData: Array<Person> = [
|
|||||||
fullName: 'Alexandre Prot',
|
fullName: 'Alexandre Prot',
|
||||||
picture: personPlaceholder,
|
picture: personPlaceholder,
|
||||||
email: 'alexandre@qonto.com',
|
email: 'alexandre@qonto.com',
|
||||||
company: { id: 1, name: 'Qonto', logo: 'https://qonto.eu/logo.png' },
|
company: { id: 1, name: 'Qonto', domain: 'qonto.com' },
|
||||||
phone: '06 12 34 56 78',
|
phone: '06 12 34 56 78',
|
||||||
creationDate: new Date('Feb 23, 2018'),
|
creationDate: new Date('Feb 23, 2018'),
|
||||||
pipe: { id: 1, name: 'Sales Pipeline', icon: 'faUser' },
|
pipe: { id: 1, name: 'Sales Pipeline', icon: 'faUser' },
|
||||||
@ -59,7 +59,7 @@ const defaultData: Array<Person> = [
|
|||||||
fullName: 'Alexandre Prot',
|
fullName: 'Alexandre Prot',
|
||||||
picture: personPlaceholder,
|
picture: personPlaceholder,
|
||||||
email: 'alexandre@qonto.com',
|
email: 'alexandre@qonto.com',
|
||||||
company: { id: 1, name: 'Qonto', logo: 'https://qonto.eu/logo.png' },
|
company: { id: 1, name: 'Qonto', domain: 'qonto.com' },
|
||||||
phone: '06 12 34 56 78',
|
phone: '06 12 34 56 78',
|
||||||
creationDate: new Date('Feb 23, 2018'),
|
creationDate: new Date('Feb 23, 2018'),
|
||||||
pipe: { id: 1, name: 'Sales Pipeline', icon: 'faUser' },
|
pipe: { id: 1, name: 'Sales Pipeline', icon: 'faUser' },
|
||||||
@ -70,7 +70,7 @@ const defaultData: Array<Person> = [
|
|||||||
fullName: 'Alexandre Prot',
|
fullName: 'Alexandre Prot',
|
||||||
picture: personPlaceholder,
|
picture: personPlaceholder,
|
||||||
email: 'alexandre@qonto.com',
|
email: 'alexandre@qonto.com',
|
||||||
company: { id: 1, name: 'Qonto', logo: 'https://qonto.eu/logo.png' },
|
company: { id: 1, name: 'Qonto', domain: 'qonto.com' },
|
||||||
phone: '06 12 34 56 78',
|
phone: '06 12 34 56 78',
|
||||||
creationDate: new Date('Feb 23, 2018'),
|
creationDate: new Date('Feb 23, 2018'),
|
||||||
pipe: { id: 1, name: 'Sales Pipeline', icon: 'faUser' },
|
pipe: { id: 1, name: 'Sales Pipeline', icon: 'faUser' },
|
||||||
@ -81,7 +81,7 @@ const defaultData: Array<Person> = [
|
|||||||
fullName: 'Alexandre Prot',
|
fullName: 'Alexandre Prot',
|
||||||
picture: personPlaceholder,
|
picture: personPlaceholder,
|
||||||
email: 'alexandre@qonto.com',
|
email: 'alexandre@qonto.com',
|
||||||
company: { id: 1, name: 'Qonto', logo: 'https://qonto.eu/logo.png' },
|
company: { id: 1, name: 'Qonto', domain: 'qonto.com' },
|
||||||
phone: '06 12 34 56 78',
|
phone: '06 12 34 56 78',
|
||||||
creationDate: new Date('Feb 23, 2018'),
|
creationDate: new Date('Feb 23, 2018'),
|
||||||
pipe: { id: 1, name: 'Sales Pipeline', icon: 'faUser' },
|
pipe: { id: 1, name: 'Sales Pipeline', icon: 'faUser' },
|
||||||
@ -92,7 +92,7 @@ const defaultData: Array<Person> = [
|
|||||||
fullName: 'Alexandre Prot',
|
fullName: 'Alexandre Prot',
|
||||||
picture: personPlaceholder,
|
picture: personPlaceholder,
|
||||||
email: 'alexandre@qonto.com',
|
email: 'alexandre@qonto.com',
|
||||||
company: { id: 1, name: 'Qonto', logo: 'https://qonto.eu/logo.png' },
|
company: { id: 1, name: 'Qonto', domain: 'qonto.com' },
|
||||||
phone: '06 12 34 56 78',
|
phone: '06 12 34 56 78',
|
||||||
creationDate: new Date('Feb 23, 2018'),
|
creationDate: new Date('Feb 23, 2018'),
|
||||||
pipe: { id: 1, name: 'Sales Pipeline', icon: 'faUser' },
|
pipe: { id: 1, name: 'Sales Pipeline', icon: 'faUser' },
|
||||||
@ -133,7 +133,7 @@ const columns = [
|
|||||||
cell: (props) => (
|
cell: (props) => (
|
||||||
<CellLink
|
<CellLink
|
||||||
name={props.row.original.company.name}
|
name={props.row.original.company.name}
|
||||||
picture={props.row.original.company.logo}
|
picture={props.row.original.company.domain}
|
||||||
href="#"
|
href="#"
|
||||||
/>
|
/>
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user