From eaf7516776120b23aee0168159d6bb92694ca0a6 Mon Sep 17 00:00:00 2001 From: Jonathan ARNAULT Date: Fri, 26 Jul 2024 10:07:44 +0200 Subject: [PATCH] Fix(crm): It was not possible ta save a company or a contact due to linkedin URL --- examples/crm/src/contacts/ContactAside.tsx | 26 +++++++++++----------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/examples/crm/src/contacts/ContactAside.tsx b/examples/crm/src/contacts/ContactAside.tsx index f0ed014fad..7ef50138be 100644 --- a/examples/crm/src/contacts/ContactAside.tsx +++ b/examples/crm/src/contacts/ContactAside.tsx @@ -1,27 +1,26 @@ -import * as React from 'react'; +import EmailIcon from '@mui/icons-material/Email'; +import LinkedInIcon from '@mui/icons-material/LinkedIn'; +import PhoneIcon from '@mui/icons-material/Phone'; +import { Box, Divider, Stack, Typography } from '@mui/material'; import { - TextField, - EmailField, DateField, - ReferenceManyField, EditButton, - ShowButton, + EmailField, + FunctionField, ReferenceField, + ReferenceManyField, SelectField, - FunctionField, - useRecordContext, + ShowButton, + TextField, UrlField, + useRecordContext, } from 'react-admin'; -import { Box, Typography, Divider, Stack } from '@mui/material'; -import EmailIcon from '@mui/icons-material/Email'; -import LinkedInIcon from '@mui/icons-material/LinkedIn'; -import PhoneIcon from '@mui/icons-material/Phone'; -import { TagsListEdit } from './TagsListEdit'; import { AddTask } from '../tasks/AddTask'; import { TasksIterator } from '../tasks/TasksIterator'; +import { TagsListEdit } from './TagsListEdit'; -import { Contact, Sale } from '../types'; import { useConfigurationContext } from '../root/ConfigurationContext'; +import { Contact, Sale } from '../types'; export const ContactAside = ({ link = 'edit' }: { link?: 'edit' | 'show' }) => { const { contactGender } = useConfigurationContext(); @@ -63,6 +62,7 @@ export const ContactAside = ({ link = 'edit' }: { link?: 'edit' | 'show' }) => { content="linkedin_url" target="_blank" rel="noopener" + label="LinkedIn" /> )}